debug

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

Logs a message on the debug level.

Parameters

message

inlined lambda which will be evaluated only if debug 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_DEBUG
Application.getLogLevel

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

Logs a message on the debug level.

Parameters

cause

its stack trace will be printed.

message

inlined lambda which will be evaluated only if debug 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_DEBUG
Application.getLogLevel