Skip to content

Instance Method

log(event:)

The library calls this method when a log handler must emit a log message.
func log(event: LogEvent)

Parameters

event

The log event containing the level, message, metadata, and source location.

Discussion

There is no need for the LogHandler to check if the level is above or below the configured logLevel as Logger already performed this check and determined that a message should be logged.