Configuration
Option
Type
Description
context
(Optional)
boolean
Object containing the request id and lambda data
pretty
(Optional)
boolean
Enable the pretty format to logger.
handler
(Optional)
Function
Method that returns the response of each logger
Example:
Logger.configure({
context: { ... },
pretty: false,
handler: (log) => { ... },
})
const log = Logger.create();
Last updated
Was this helpful?