Package-level declarations

Types

Link copied to clipboard
interface Logger

A central utility class for processing log statements at various log levels.

Link copied to clipboard
interface LogHandler

LogHandler is responsible for handling and recording log messages.

Link copied to clipboard

The LogLevel enum class defines different log levels used for logging messages. Each log level is associated with an integer value that determines its priority.

Properties

Link copied to clipboard

Convenience method to check that the log level is set to debug or higher

Link copied to clipboard

Convenience method to check that the log level is set to error or higher

Link copied to clipboard

Convenience method to check that the log level is set to info or higher

Link copied to clipboard

Convenience method to check that the log level is set to trace or higher

Link copied to clipboard

Convenience method to check that the log level is set to warn or higher

Functions

Link copied to clipboard
inline fun Logger.logIfDebugEnabled(category: String, message: () -> String)

Inlines a check for whether the Logger is currently logging at LogLevel.DEBUG, before evaluating the message, whilst avoiding an unnecessary anonymous class implementation.

Link copied to clipboard
inline fun Logger.logIfErrorEnabled(category: String, message: () -> String)

Inlines a check for whether the Logger is currently logging at LogLevel.ERROR, before evaluating the message, whilst avoiding an unnecessary anonymous class implementation.

Link copied to clipboard
inline fun Logger.logIfInfoEnabled(category: String, message: () -> String)

Inlines a check for whether the Logger is currently logging at LogLevel.INFO, before evaluating the message, whilst avoiding an unnecessary anonymous class implementation.

Link copied to clipboard
inline fun Logger.logIfTraceEnabled(category: String, message: () -> String)

Inlines a check for whether the Logger is currently logging at LogLevel.TRACE, before evaluating the message, whilst avoiding an unnecessary anonymous class implementation.

Link copied to clipboard
inline fun Logger.logIfWarnEnabled(category: String, message: () -> String)

Inlines a check for whether the Logger is currently logging at LogLevel.WARN, before evaluating the message, whilst avoiding an unnecessary anonymous class implementation.