Protected
_entriesProtected
Readonly
ioProtected
optionsStatic
prefixednumber of attached streams
Gets the array of log entries. Empty if retainLogs is false.
A copy of the log entries array.
Rest
...args: ArgumentMap<{ Optional
context: anyAttaches an input or output to the Logger
The interface to attach.
Options for the I/O If log levels are not provided, all log levels will be attached.
Optional
opt: IOAttachOptionsDetaches an input or output from the Logger
The interface to detach.
If log levels are not provided, all log levels will be detached.
Optional
opt: IODetachOptionsCalls each of the listeners registered for a given event.
Rest
...args: ArgumentMap<{ Optional
fn: ((...args) => void)Rest
...args: ArgumentMap<{ Optional
context: anyOptional
once: booleanAdd a listener for a given event.
Rest
...args: ArgumentMap<{ Optional
context: anyAdd a one-time listener for a given event.
Rest
...args: ArgumentMap<{ Optional
context: anyRemove the listeners of a given event.
Optional
fn: ((...args) => void)Rest
...args: ArgumentMap<{ Optional
context: anyOptional
once: booleanOutputs a log message to attached outputs.
The log message to be sent.
The log level for the message. Defaults to LogLevel.LOG.
Outputs a log message to attached outputs.
The message
Get the number of attached streams