public final class MultiLogHandler implements LogHandler, AutoClosable:
Fan-out handler forwarding each event to every enabled child handler.
import klyn.logging
import klyn.logging.handler
handler = MultiLogHandler([ConsoleLogHandler(), JsonLogHandler("app.jsonl")])
Logs.configure(handler)| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | handlershandlers as IList<LogHandler>: |
Snapshot of the direct child handlers. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | MultiLogHandlerMultiLogHandler(handlers as IList<LogHandler>): |
Creates a stable snapshot of child handlers. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | accepts | Returns true when at least one child accepts the event. |
| public | closeclose() as Void: |
Flushes and closes closable children. |
| public | flushflush() as Void: |
Flushes every child. |
| public | handlehandle(event as LogEvent) as Void: |
Forwards the event only to accepting children. |