log
open fun <C : Log.Category> Log.Sink<C>.log(category: C, level: Log.Level, throwable: Throwable?, message: () -> String)
Log a message with the given category and level.
The message is lazy-evaluated, and should only be invoked if the entry passes the log filters.
Parameters
category
The category of the log entry.
level
The severity level of the log entry.
throwable
An optional Throwable associated with the log entry, such as an exception being logged.
message
A lambda that produces the log message.
A shortcut for logging only a throwable. The message is taken from the throwable.
Parameters
category
The category of the log entry.
level
The severity level of the log entry.
throwable
A Throwable to be logged.