log

fun <E : Throwable> log(level: System.Logger.Level, exception: E, message: (E) -> Any?)

Log a message, with associated exception information.

Parameters

level

Level used in the log statement.

exception

The exception associated with log message.

message

The message supplier to use in the log statement.


fun log(level: System.Logger.Level, message: () -> Any?)

Log a message.

Parameters

level

Level used in the log statement.

message

The message supplier to use in the log statement.