Bark

object Bark(source)

The purpose of this class is to serve as the main API object of this library, which provides themed logging methods and configuration.

Uses a handler-based architecture for flexible output destinations.

Since

0.0.1

Functions

Link copied to clipboard
fun d(message: String, throwable: Throwable? = null)

Log a message at DEBUG level.

Link copied to clipboard
fun e(message: String, throwable: Throwable? = null)

Log a message at ERROR level.

Link copied to clipboard

Get current configuration status info.

Link copied to clipboard
fun heel(tag: String, block: () -> Unit)

Log within a temporary tag scope.

Link copied to clipboard
fun i(message: String, throwable: Throwable? = null)

Log a message at INFO level.

Link copied to clipboard
fun muzzle()

Muzzle Bark - disable all logging.

Link copied to clipboard

Clear all trainers.

Link copied to clipboard
fun tag(tag: String)

Tag Bark with a global tag prefix.

Link copied to clipboard
fun train(trainer: Trainer)

Train Bark with a new Trainer, which determine where and how logs are output..

Link copied to clipboard
fun unmuzzle()

Unmuzzle Bark - re-enable logging.

Link copied to clipboard
fun untag()

Delete the global tag prefix.

Link copied to clipboard
fun untrain(trainer: Trainer)

Remove a Trainer from the trainers list, and sop the system from using it.

Link copied to clipboard
fun v(message: String, throwable: Throwable? = null)

Log a message at VERBOSE level.

Link copied to clipboard
fun w(message: String, throwable: Throwable? = null)

Log a message at WARNING level.

Link copied to clipboard
fun wtf(message: String, throwable: Throwable? = null)

Log a message at CRITICAL level.