Creates a Logger instance using provided options object. Default values are used if options are not provided.
Optional
options: LoggerOptionsPrivate
Readonly
configPrivate
formatPrivate
getPrivate
getGets the middleware at the moment of the log generation, since the Logger instance can be created before the global log middleware setup.
Private
getGets the middleware at the moment of the log generation, since the Logger instance can be created before the global log middleware setup.
Private
getPrivate
getGets the middleware at the moment of the log generation, since the Logger instance can be created before the global log middleware setup.
Private
getGets the middleware at the moment of the log generation, since the Logger instance can be created before the global log middleware setup.
Private
Optional
Readonly
logPrivate
Readonly
logPrivate
Readonly
loggerPrivate
Optional
Readonly
maskPrivate
Readonly
maxPrivate
processPrivate
setPrivate
skipPrivate
Optional
Readonly
skipWrites a log message. Log level and errors can optionally be set.
The message that will be logged.
Optional
__namedParameters: { Optional
error?: ErrorCan be used to pass an error object along with the log entry
Optional
level?: LogLevelThe severity level the message should have
Generated using TypeDoc
Default Mosaic logger class. Used to write logs to the console in JSON format (no line breaks).