LogHandler
interfacein packageklyn.logging
public interface LogHandler:
LogHandler

Destination contract for log events.

A Logger produces a LogEvent; a LogHandler processes it. Handler implementations must be safe for concurrent calls unless documented otherwise.

Example
import klyn.logging
import klyn.logging.handler

handler as LogHandler = ConsoleLogHandler()
LogManager.configure(handler)
Methods
Modifier and Type Member Description
public accepts
accepts(logger as String, level as LogLevel) as Boolean
Checks whether this handler accepts an event.
public flush
flush() as Void
Flushes buffered events to their destination.
public handle
handle(event as LogEvent) as Void
Processes one immutable event.