LoggerFactory

The main entry point for configuring the logging pipeline and obtaining Logger instances.

Call install once during application initialization to configure sinks, level filtering, and per-tag overrides. If install is never called, a default configuration is used automatically (LogLevel.VERBOSE, DefaultLogSink).

Logger instances are cached by tag, so repeated calls to get with the same tag typically return the same object. The cache is invalidated whenever install is called.

Functions

Link copied to clipboard
fun get(tag: String): Logger

Returns a Logger identified by tag.

Link copied to clipboard
fun install(config: LoggerConfig)

Installs a new configuration, replacing any previously installed one.