public final class LogHandlerConfiguration:
Typed view over one handler table loaded from TOML.
import klyn.logging
config = LogHandlerConfiguration("console", {"enabled": true})
assert config.enabled| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | enabledenabled as Boolean: |
Whether this handler is enabled. |
| public readonly property | namename as String |
TOML table name and handler factory identifier. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | LogHandlerConfigurationLogHandlerConfiguration(name as String, options as Map<String, Object> = null): |
Creates a handler configuration. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | boolean | Reads a boolean option. |
| public | has | Tests whether an option exists. |
| public | integer | Reads an integer option. |
| public | long | Reads a long integer option. |
| public | requiredString | Reads a required non-empty string option. |
| public | string | Reads a string option. |
| public | table | Reads a nested TOML table. |
| public | toMap | Returns an independent option map. |
| public | validateOptionsvalidateOptions(allowed as IList<String>) as Void throws LogConfigurationException: |
Rejects options not declared by a handler factory. |
| public | value | Reads a raw option. |