Logger

interface Logger(source)

Abstraction for logging operations.

Functions

Link copied to clipboard
abstract fun debug(message: Any)

Logs a debug message.

Link copied to clipboard
abstract fun <T> debugSection(title: String, block: () -> T): T

Executes a block of code within a debug section.

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

Logs an error message.

Link copied to clipboard
abstract fun info(message: String)

Logs an info message.

Link copied to clipboard
abstract fun output(message: String)

Logs an output message.

Link copied to clipboard
abstract fun verbose(message: String)

Logs a verbose message.

Link copied to clipboard
abstract fun <T> verboseSection(title: String, block: () -> T): T

Executes a block of code within a verbose section.

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

Logs a warning message.