The printer(s) to use for logging
Optional
options: LoggerOptionsOptions for the logger
An optional parent logger to inherit settings from (used when forking a new logger)
Log an alert error with an optional description and metadata.
The error to log
Optional
description: stringAn optional description to prefix the error message
Optional
metadata: LoggerMetadataWithoutErrorOptional metadata to attach to the log message
Clear the console.
Log a critical error with an optional description and metadata.
The error to log
Optional
description: stringAn optional description to prefix the error message
Optional
metadata: LoggerMetadataWithoutErrorOptional metadata to attach to the log message
Log debug metadata with a description.
If process.env.DEBUG
is truthy, a stack trace will be captured and
attached to the log message.
Metadata to log
Description of the debug log
Log an emergency error with an optional description and metadata.
The error to log
Optional
description: stringAn optional description to prefix the error message
Optional
metadata: LoggerMetadataWithoutErrorOptional metadata to attach to the log message
Log an error with an optional description and metadata.
The error to log
Optional
description: stringAn optional description to prefix the error message
Optional
metadata: LoggerMetadataWithoutErrorOptional metadata to attach to the log message
Flush any buffered output.
Create a new logger that inherits settings from this logger.
Optional
options: LoggerOptionsOptions for the new logger
A new logger that inherits settings from this logger
Log an informative message with optional metadata.
The message to log
Optional
metadata: LoggerMetadataOptional metadata to attach to the log message
Log a message with a specific log level, message and options.
Log level
Message
Optional
options: LoggerLogOptionsOptional log options
Log a notice message with optional metadata.
The message to log
Optional
metadata: LoggerMetadataOptional metadata to attach to the log message
Log a warning with an optional description and metadata.
The warning to log
Optional
description: stringAn optional description to prefix the warning message
Optional
metadata: LoggerMetadataWithoutErrorOptional metadata to attach to the log message
Create a new logger.