Protected_Protected ReadonlyioProtectedoptionsStaticprefixednumber of attached streams
Gets the array of log entries. Empty if retainLogs is false.
A copy of the log entries array.
Optionalcontext: 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.
Attaches an input or output to the Logger
The interface to attach.
Optionalopt: IOAttachOptionsOptions for the I/O If log levels are not provided, all log levels will be attached.
Clears retained log entries
whether the entries where cleared or not
Detaches all I/O
Logs a debug message with the LogLevel.DEBUG level.
The log message.
Detaches an input or output from the Logger
The interface to detach.
If log levels are not provided, all log levels will be detached.
Detaches an input or output from the Logger
The interface to detach.
If log levels are not provided, all log levels will be detached.
Optionalopt: IODetachOptionsDetaches an input or output from the Logger
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Logs a message with the LogLevel.INFO level.
The log message.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Logs a info message with the LogLevel.NOTICE level.
The log message.
Optionalfn: (Optionalcontext: anyOptionalonce: booleanAdd a listener for a given event.
Optionalcontext: anyAdd a one-time listener for a given event.
Optionalcontext: anyRemove the listeners of a given event.
Optionalfn: (Optionalcontext: anyOptionalonce: booleanOutputs a log message to attached outputs.
The log message to be sent.
The log level for the message. Defaults to LogLevel.LOG.
Converts the log entries to a string.
A string representation of the log entries.
Get the number of attached streams