public interface LogHandlerFactory:
Creates a handler from one named TOML configuration table.
Factories decouple the TOML parser from concrete handlers. Registering a custom factory allows an application to add a new [handlerName] table.
import klyn.logging # LogManager.registerHandlerFactory(MyHandlerFactory())
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | namename as String |
Configuration table name handled by this factory. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | createcreate(configuration as LogHandlerConfiguration) as LogHandler throws LogConfigurationException |
Creates a handler. |
| public | validatevalidate(configuration as LogHandlerConfiguration) as Void throws LogConfigurationException |
Validates the shape and declared values of a TOML table. |