LogHandlerFactory
interfacein packageklyn.logging
public interface LogHandlerFactory:
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.

Example
import klyn.logging

# LogManager.registerHandlerFactory(MyHandlerFactory())
Properties
Modifier and Type Member Description
public readonly property name
name as String
Configuration table name handled by this factory.
Methods
Modifier and Type Member Description
public create Creates a handler.
public validate
validate(configuration as LogHandlerConfiguration) as Void throws LogConfigurationException
Validates the shape and declared values of a TOML table.