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 class with Kotlin improvements like lazy evaluation. It is backed by a logging port.

Link copied to clipboard
interface LoggerPort

A Logger is used to log messages for a specific system or application component.

Link copied to clipboard

Logger logging level values.

Link copied to clipboard

Manages Logs using JulLoggingAdapter

Link copied to clipboard
interface LoggingPort

Logging Contract for integrating different logging libraries.

Functions

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

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

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

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

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

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

Properties

Link copied to clipboard

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