Protected
Optional
contextProtected
inspectThe options used for the "inspect" method.
Protected
optionsThe options of the logger.
Protected
Optional
originalThe original context of the logger (set in the constructor).
Protected
Static
Optional
lastThe last timestamp at which the log message was printed.
Protected
colorizeWrite a 'debug' level log, if the configured level allows for it.
Prints to stdout
with newline.
Optional
context: stringWrite a 'debug' level log, if the configured level allows for it.
Prints to stdout
with newline.
Write an 'error' level log, if the configured level allows for it.
Prints to stderr
with newline.
Optional
stackOrContext: stringWrite an 'error' level log, if the configured level allows for it.
Prints to stderr
with newline.
Optional
stack: stringOptional
context: stringWrite an 'error' level log, if the configured level allows for it.
Prints to stderr
with newline.
Write a 'fatal' level log, if the configured level allows for it.
Prints to stdout
with newline.
Optional
context: stringWrite a 'fatal' level log, if the configured level allows for it.
Prints to stdout
with newline.
Protected
formatProtected
formatProtected
formatProtected
formatProtected
getProtected
getWrite a 'log' level log, if the configured level allows for it.
Prints to stdout
with newline.
Optional
context: stringWrite a 'log' level log, if the configured level allows for it.
Prints to stdout
with newline.
Protected
printProtected
printOptional
context: stringOptional
logLevel: LogLevelProtected
printResets the logger context to the value that was passed in the constructor.
Set logger context
context
Set log levels
log levels
Protected
stringifyProtected
stringifyProtected
updateWrite a 'verbose' level log, if the configured level allows for it.
Prints to stdout
with newline.
Optional
context: stringWrite a 'verbose' level log, if the configured level allows for it.
Prints to stdout
with newline.
Write a 'warn' level log, if the configured level allows for it.
Prints to stdout
with newline.
Optional
context: stringWrite a 'warn' level log, if the configured level allows for it.
Prints to stdout
with newline.
The context of the logger (can be set manually or automatically inferred).