debug

inline fun debug(tag: String = DEBUG, message: () -> String)

Logs a message on the debug level.

Parameters

tag

will proceed the message. Defaults to "DEBUG".

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

Logs a message on the debug level.

Parameters

cause

its stack trace will be printed.

tag

will proceed the message. Defaults to "DEBUG".

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