Companion

Functions

Link copied to clipboard
fun debug(logLevel: LogLevel, scope: LogScope, message: String = "", info: Map<String, Any>? = mapOf(), error: Throwable? = null)

Note that info is read on the log thread, so it must not be mutated after being passed in.

inline fun debug(logLevel: LogLevel, scope: LogScope, error: Throwable? = null, info: () -> Map<String, Any>? = { mapOf() }, message: () -> String)

Builds message and info only when something will consume the log. Note that info is read on the log thread, so it must not be mutated after being passed in.

Link copied to clipboard
fun shouldPrint(logLevel: LogLevel, scope: LogScope): Boolean