Constructor
new Logger(callback)
Creates a new Logger
instance.
Parameters
-
callback
LoggerCallback
The logging callback asynchronously called when a log method call is made.
Source
Members
callbackLoggerCallback
Type
Source
Methods
async
debug(…args)
Writes a debug-severity log message. This is the lowest severity.
Parameters
-
args
any
<repeatable>
Any object values to be logged.
Source
async
error(…args)
Writes a error-severity log message. This is the highest severity.
Parameters
-
args
any
<repeatable>
Any object values to be logged.
Source
async
info(…args)
Writes an information-severity log message. This is the second-to-lowest severity.
Parameters
-
args
any
<repeatable>
Any object values to be logged.
Source
async
warn(…args)
Writes a warning-severity log message. This is the second-to-highest severity.
Parameters
-
args
any
<repeatable>
Any object values to be logged.