LogHandler

The interface for any component that consumes log messages generated by a Logger. Only messages whose level is greater than or equal to the logger's level will be sent to handlers. For example, a Logger configured at an INFO log level will send INFO, WARN, and ERROR messages, but not DEBUG or TRACE.

Each Logger has a single root LogHandler instance. This "root handler" can be a very simple handler that sends messages to stdout, or it could be a more complex composition of handlers to distribute logs to various locations according to filtering logic.

interface LogHandler {}

Members

Functions

handle
void handle(LogMessage msg)

Handles a log message.