Log

Global logging object. To receive logs, call dispatcher.install.

Properties

Link copied to clipboard

Global log dispatcher.

Link copied to clipboard

Global tag generator for log calls without explicit tag.

Functions

Link copied to clipboard
fun assert(throwable: Throwable? = null, tag: String? = null, message: (WriteMetadata) -> String)

Send an assert-level log message to the global dispatcher.

Link copied to clipboard
fun debug(throwable: Throwable? = null, tag: String? = null, message: (WriteMetadata) -> String)

Send a debug-level log message to the global dispatcher.

Link copied to clipboard
fun dynamic(level: LogLevel, throwable: Throwable? = null, tag: String? = null, message: (WriteMetadata) -> String)

Send a log message at a dynamic level to the global dispatcher.

Link copied to clipboard
fun error(throwable: Throwable? = null, tag: String? = null, message: (WriteMetadata) -> String)

Send an error-level log message to the global dispatcher.

Link copied to clipboard
fun info(throwable: Throwable? = null, tag: String? = null, message: (WriteMetadata) -> String)

Send an info-level log message to the global dispatcher.

Link copied to clipboard
fun verbose(throwable: Throwable? = null, tag: String? = null, message: (WriteMetadata) -> String)

Send a verbose-level log message to the global dispatcher.

Link copied to clipboard
fun warn(throwable: Throwable? = null, tag: String? = null, message: (WriteMetadata) -> String)

Send an warn-level log message to the global dispatcher.