Package-level declarations

Types

Link copied to clipboard
abstract class AbstractLogger : Logger

An abstract implementation of a logger. This class delegates the trace, debug, info, warn, and error methods to a centralized log method which accepts LogLevel as a parameter. By default, this class uses no-op implementations for all other members unless overridden in a subclass.

Link copied to clipboard

An abstract implementation of a logger provider. By default, this class uses no-op implementations for all members unless overridden in a subclass.

Link copied to clipboard

An abstract implementation of a log record builder. By default, this class uses no-op implementations for all members unless overridden in a subclass.

Link copied to clipboard
interface Logger

Internal logging facade

Link copied to clipboard
interface LoggerProvider

Entry point for creating Logger instances

Link copied to clipboard
Link copied to clipboard

Construct a logging record that can be emitted to an underlying logger.

Link copied to clipboard
typealias MessageSupplier = () -> String

Inherited functions

Link copied to clipboard
fun Logger.debug(msg: String)

Add a log message if debug logging is enabled

Link copied to clipboard
fun Logger.error(msg: String)

Add a log message if error logging is enabled

Link copied to clipboard

Get the logger for the class T

Link copied to clipboard
fun Logger.info(msg: String)

Add a log message if info logging is enabled

Link copied to clipboard
fun Logger.trace(msg: String)

Add a log message if trace logging is enabled

Link copied to clipboard
fun Logger.warn(msg: String)

Add a log message if warn logging is enabled