public final class 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.
import klyn.logging
configuration = LogConfiguration.load("logging.toml")
LogManager.configure(configuration)| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | handlershandlers as ArrayList<LogHandlerConfiguration> |
Configured handler tables. |
| public property | levellevel as LogLevel |
Root minimum level. |
| public readonly property | loggerLevels | Per-logger hierarchical level overrides. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | LogConfiguration | Creates a default console configuration at INFO level. |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | fromMapfromMap(document as Map<String, Object>) as LogConfiguration throws LogConfigurationException: |
Builds configuration from an already parsed TOML root table. |
| public static | loadload(filename as String) as LogConfiguration throws IOException, TOMLParseException, LogConfigurationException: |
Loads configuration from a TOML file. |
| public static | loadload(path as Path) as LogConfiguration throws IOException, TOMLParseException, LogConfigurationException: |
Loads configuration from a path. |