error

inline fun error(message: () -> String)

Logs a message on the error level.

Parameters

message

inlined lambda which will be evaluated only if error logs are currently on. The string result of this function will be created ONLY when needed, reducing the impact of creating new strings at runtime.

See also

Application.LOG_ERROR
Application.getLogLevel

inline fun error(cause: Throwable, message: () -> String)

Logs a message on the error level.

Parameters

cause

its stack trace will be printed.

message

inlined lambda which will be evaluated only if error logs are currently on. The string result of this function will be created ONLY when needed, reducing the impact of creating new strings at runtime.

See also

Application.LOG_ERROR
Application.getLogLevel