Logger

object Logger

A proxy to android.util.Log, with levels of gravity that can be turned on or off. By default, all levels are enabled. The tag component is automatically prefixed with the string "SDK-".

Functions

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

Logs a message at DEBUG level, if enabled.

Link copied to clipboard
fun e(tag: String, msg: String)
fun e(tag: String, msg: String, tr: Throwable)

Logs a message at ERROR level, if enabled.

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

Logs a message at INFO level, if enabled.

Link copied to clipboard

Tells if a level is currently enabled.

Link copied to clipboard
fun mute(state: Boolean, vararg levels: LogLevel)

Toggles the output of one or more levels.

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

Logs a message at VERBOSE level, if enabled.

Link copied to clipboard
fun w(tag: String, msg: String)
fun w(tag: String, msg: String, tr: Throwable)

Logs a message at WARNING level, if enabled.