Logger

interface Logger

Internal logging facade

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun atLevel(level: LogLevel): LogRecordBuilder

Create a new log record using the returned LogRecordBuilder

Link copied to clipboard
abstract fun debug(t: Throwable? = null, msg: MessageSupplier)

Lazy add a log message with throwable payload if debug logging is enabled

Link copied to clipboard
abstract fun error(t: Throwable? = null, msg: MessageSupplier)

Lazy add a log message with throwable payload if error logging is enabled

Link copied to clipboard
abstract fun info(t: Throwable? = null, msg: MessageSupplier)

Lazy add a log message with throwable payload if info logging is enabled

Link copied to clipboard
abstract fun isEnabledFor(level: LogLevel): Boolean

Test if this logger is enabled for level

Link copied to clipboard
abstract fun trace(t: Throwable? = null, msg: MessageSupplier)

Lazy add a log message with throwable payload if trace logging is enabled

Link copied to clipboard
abstract fun warn(t: Throwable? = null, msg: MessageSupplier)

Lazy add a log message with throwable payload if warn logging is enabled

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
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