error

inline fun error(tag: String = ERROR, message: () -> String)

Logs a message on the error level.

Parameters

tag

will proceed the message. Defaults to "ERROR".

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, tag: String = ERROR, message: () -> String)

Logs a message on the error level.

Parameters

cause

its stack trace will be printed.

tag

will proceed the message. Defaults to "ERROR".

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