LogConfiguration
classin packageklyn.logging
public final class LogConfiguration:
LogConfiguration

Complete logging configuration loaded from TOML.

Handler tables are associated with registered LogHandlerFactory names. The built-in console, file, rollingFile, json, database and smtp factories are resolved by LogManager when their tables are used.

Example
import klyn.logging

configuration = LogConfiguration.load("logging.toml")
LogManager.configure(configuration)
Properties
Modifier and Type Member Description
public readonly property handlers Configured handler tables.
public property level
level as LogLevel
Root minimum level.
public readonly property loggerLevels
loggerLevels as SortedMap<String, LogLevel>
Per-logger hierarchical level overrides.
Constructors
Modifier and Type Member Description
public LogConfiguration Creates a default console configuration at INFO level.
Methods
Modifier and Type Member Description
public static fromMap
fromMap(document as Map<String, Object>) as LogConfiguration throws LogConfigurationException:
Builds configuration from an already parsed TOML root table.
public static load Loads configuration from a TOML file.
public static load Loads configuration from a path.