Creates a Logger instance using provided options object. Default values are used if options are not provided.
Optional options: LoggerOptionsPrivate Readonly configPrivate Optional Readonly logPrivate Readonly logPrivate Readonly loggerPrivate Optional Readonly maskPrivate Readonly maxPrivate Optional Readonly skipPrivate formatPrivate getRest ...data: any[]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 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 processPrivate setPrivate skipWrites a log message. Log level and errors can optionally be set.
The message that will be logged.
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).