Logger

interface Logger

Logger defines how to write logs for different logging level.

Inheritors

Functions

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

Emits an debug message if the log level is equal to or lower than debug level.

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

Emits an error message if the log level is equal to or lower than error level.

Link copied to clipboard
abstract fun getLogLevel(): LogLevel

Gets the current log level.

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

Emits an info message if the log level is equal to or lower than info level.

Link copied to clipboard
abstract fun setLogLevel(level: LogLevel)

Sets the log level.

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

Emits an verbose message if the log level is equal to or lower than verbose level.

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

Emits a warning message if the log level is equal to or lower than warn level.