Logger

interface Logger

An API for logging messages.

Each Logging method accepts a lambda which is computed ONLY IF the corresponding Level is enabled

Types

Link copied to clipboard
abstract class Builder

A convenience builder class for composing a Logger object.

Link copied to clipboard
object Companion
Link copied to clipboard

Levels of Logging, Ordered in terms of Verbosity from the Least to the Most

Properties

Link copied to clipboard
abstract val tag: String

The String that will be prefixed as a Tag on all log messages

Link copied to clipboard
abstract val verboseMask: Int

Mask that contains information on the enabled Levels of logging.

Functions

Link copied to clipboard
abstract fun debug(lazyMessage: () -> String?)

Performs a Level.DEBUG level Logging, of the String message, computed by invoking lazyMessage lambda.

Link copied to clipboard
abstract fun error(lazyMessage: () -> String?)

Performs a Level.ERROR level Logging, of the String message, computed by invoking lazyMessage lambda.

abstract fun error(throwable: Throwable?, lazyMessage: () -> String?)

Performs a Level.ERROR level Logging of:

Link copied to clipboard
abstract fun info(lazyMessage: () -> String?)

Performs a Level.INFO level Logging, of the String message, computed by invoking lazyMessage lambda.

Link copied to clipboard

Checks if the passed Logger Level is enabled by checking the underlying Mask Bit.

Link copied to clipboard
abstract fun trace(lazyMessage: () -> String?)

Performs a Level.TRACE level Logging, of the String message, computed by invoking lazyMessage lambda.

Link copied to clipboard
abstract fun warn(lazyMessage: () -> String?)

Performs a Level.WARN level Logging, of the String message, computed by invoking lazyMessage lambda.