Optional
options: LogOptionsStatic
Readonly
ConsoleThe Console target, which is a basic logging target that outputs logs to the console
Static
Readonly
defaultThe default log level, used for new instances of the logger
Dispose of the logger instance, clearing all logs and targets
Terminate the logger instance, clearing all logs and targets
Register a new logging target (sink) to send logs to, using the Console target
Optional
config: LogTargetConsoleConfigStart a timer to periodically sync logs to all targets
If a timer was started with startAutoSync()
, stop it
Sync all currently enqueued logs to all targets
Static
LegacyThe legacy logger
This is a singleton instance of the logger that registers a console target that emits logs immediately to the console.
This also sets the log level based on the <name>_DEBUG
environment variable, if available and adds filtering based on
the <name>_DEBUG_FILTER
environment variable, if available.
The default value for <name>
is KEETANET
.
Optional
name: stringStatic
NullThe Null logger, to disable logging entirely
The maximum number of log entries to send to each target at a time