error

fun error(message: () -> Any?)

Log a message using ERROR level.

Parameters

message

The required message to log.


fun <E : Throwable> error(exception: E?, message: (E?) -> Any? = { "" })

Log a message using ERROR level with associated exception information.

Parameters

exception

The exception associated with log message.

message

The message to log (function to optional). If not supplied it will be empty.