Optionaloptions: LogOptionsProtectedparentParent logger, if any -- used for creating hierarchical loggers
Static ReadonlyConsoleThe Console target, which is a basic logging target that outputs logs to the console
Static ReadonlydefaultThe default log level, used for new instances of the logger
ProtectedtargetsGet the currently registered log targets.
If this is a child logger, this will return the parent's targets because child loggers share the same targets as their parent.
Dispose of the logger instance, syncing all logs, and clearing targets
Dispose of the logger instance, clearing all logs and targets
Create a child logger instance that shares the same targets as this instance but has its own log queue, this is useful for creating hierarchical loggers which can call sync independently.
Since the child shares the same targets, registering or unregistering targets from either the parent or child will affect both.
Terminate the logger instance, clearing all logs and targets
Register a new logging target (sink) to send logs to, using the Console target
Optionalconfig: 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
StaticLegacyThe 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.
StaticNullThe Null logger, to disable logging entirely
The maximum number of log entries to send to each target at a time