Logs
classin packageklyn.logging
public final class Logs:
Logs

Concise facade for logging configuration and scoped context creation.

Example
import klyn.logging

try context = Logs.context(requestId = "req-42"):
LogManager.getLogger("http").info("Request received")
Methods
Modifier and Type Member Description
public static configure
configure(configuration as LogConfiguration) as Void:
Applies a typed logging configuration.
public static configure
configure(filename as String) as Void:
Loads and applies TOML configuration.
public static configure
configure(handler as LogHandler) as Void:
Configures one handler directly.
public static context
context(fields ... as String:Object) as LogContext:
Opens a structured context using named fields.
public static flush
flush() as Void:
Flushes the active handler graph.
public static shutdown
shutdown() as Void:
Flushes and closes closable handlers.