public final class LogManager:
Global registry and dispatch point for Klyn logging.
Logger lookup, level configuration and handler replacement are synchronized; normal event dispatch reads one stable handler reference and does not hold the manager lock during destination I/O.
import klyn.logging
logger = LogManager.getLogger("myapp")
logger.info("Server started")| Modifier and Type | Member | Description |
|---|---|---|
| public static property | levellevel as LogLevel: |
Root minimum logging level. |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | configureconfigure(configuration as LogConfiguration) as Void throws LogConfigurationException: |
Builds and atomically applies a TOML-derived configuration. |
| public static | configureconfigure(handler as LogHandler) as Void: |
Replaces the complete handler graph. |
| public static | flushflush() as Void: |
Flushes the active handler graph. |
| public static | getLogger | Gets the cached logger for a hierarchical name. |
| public static | getLoggergetLogger<T>() as Logger: |
Gets a logger named after a static type. |
| public static | registerHandlerFactoryregisterHandlerFactory(factory as LogHandlerFactory) as Void: |
Registers or replaces a TOML handler factory. |
| public static | shutdownshutdown() as Void: |
Flushes and closes the active handler graph. |