Logger

interface Logger

Interface for logging. Implementations should provide methods for different log levels.

Users can implement this interface to use a logging library, such as Timber.

The msg parameter is a lambda to allow lazy evaluation of the log message, which can improve performance by avoiding unnecessary string concatenation when the log level is not enabled.

Inheritors

Functions

Link copied to clipboard
open fun d(tag: String, msg: () -> String)

Log debug.

Link copied to clipboard
open fun e(tag: String, t: Throwable? = null, msg: () -> String)

Log error.

Link copied to clipboard
open fun i(tag: String, msg: () -> String)

Log info.

Link copied to clipboard
open fun v(tag: String, msg: () -> String)

Log verbose.

Link copied to clipboard
open fun w(tag: String, msg: () -> String)

Log warning.