Package-level declarations

Provides a logging management capabilities abstracting the application from logging libraries.

The following code block shows the most common use cases for the Logger class:

Types

Link copied to clipboard
class Logger(val name: String, logger: System.Logger = System.getLogger(name))

Logger class with Kotlin usability improvements. It is backed by a System.Logger instance.

Properties

Link copied to clipboard

Default logger for when you feel too lazy to declare one.

Functions

Link copied to clipboard
fun <T> T.debug(prefix: String = ""): T

Use this T to log a message with a prefix using DEBUG level.

Link copied to clipboard
fun <T> T.info(prefix: String = ""): T

Use this T to log a message with a prefix using INFO level.

Link copied to clipboard
fun <T> T.trace(prefix: String = ""): T

Use this T to log a message with a prefix using TRACE level.