# Logger

interface Logger : Logger(source)

An extension to the SLF4J `Logger` interface, which adds the `quiet` and `lifecycle` log levels.

You can obtain a `Logger` instance using getLogger or getLogger. A `Logger` instance is also available through getLogger, getLogger and getLogger.

CAUTION! Logging sensitive information (credentials, tokens, certain environment variables) above debug level is a security vulnerability. See our recommendations for more information.

## Properties

ROOT_LOGGER_NAME
Link copied to clipboard
val ROOT_LOGGER_NAME: String = "ROOT"

## Functions

atDebug
Link copied to clipboard
open fun atDebug(): LoggingEventBuilder
atError
Link copied to clipboard
open fun atError(): LoggingEventBuilder
atInfo
Link copied to clipboard
open fun atInfo(): LoggingEventBuilder
atLevel
Link copied to clipboard
open fun atLevel(level: Level): LoggingEventBuilder
atTrace
Link copied to clipboard
open fun atTrace(): LoggingEventBuilder
atWarn
Link copied to clipboard
open fun atWarn(): LoggingEventBuilder
debug
Link copied to clipboard
abstract fun debug(message: String, objects: Array<Any>)
Multiple-parameters friendly debug method
abstract fun debug(p: String)
error
Link copied to clipboard
abstract fun error(p: String)
getName
Link copied to clipboard
abstract fun getName(): String
info
Link copied to clipboard
abstract fun info(message: String, objects: Array<Any>)
Logs the given message at info log level.
abstract fun info(p: String)
isDebugEnabled
Link copied to clipboard
abstract fun isDebugEnabled(): Boolean
isEnabled
Link copied to clipboard
abstract fun isEnabled(level: LogLevel): Boolean
Returns true if the given log level is enabled for this logger.
isEnabledForLevel
Link copied to clipboard
open fun isEnabledForLevel(level: Level): Boolean
isErrorEnabled
Link copied to clipboard
abstract fun isErrorEnabled(): Boolean
isInfoEnabled
Link copied to clipboard
abstract fun isInfoEnabled(): Boolean
isLifecycleEnabled
Link copied to clipboard
abstract fun isLifecycleEnabled(): Boolean
Returns true if lifecycle log level is enabled for this logger.
isQuietEnabled
Link copied to clipboard
abstract fun isQuietEnabled(): Boolean
Returns true if quiet log level is enabled for this logger.
isTraceEnabled
Link copied to clipboard
abstract fun isTraceEnabled(): Boolean
isWarnEnabled
Link copied to clipboard
abstract fun isWarnEnabled(): Boolean
lifecycle
Link copied to clipboard
abstract fun lifecycle(message: String)
abstract fun lifecycle(message: String, objects: Array<Any>)
abstract fun lifecycle(message: String, throwable: Throwable)
Logs the given message at lifecycle log level.
log
Link copied to clipboard
abstract fun log(level: LogLevel, message: String)
abstract fun log(level: LogLevel, message: String, objects: Array<Any>)
abstract fun log(level: LogLevel, message: String, throwable: Throwable)
Logs the given message at the given log level.
makeLoggingEventBuilder
Link copied to clipboard
open fun makeLoggingEventBuilder(level: Level): LoggingEventBuilder
quiet
Link copied to clipboard
abstract fun quiet(message: String)
abstract fun quiet(message: String, objects: Array<Any>)
abstract fun quiet(message: String, throwable: Throwable)
Logs the given message at quiet log level.
trace
Link copied to clipboard
abstract fun trace(p: String)
warn
Link copied to clipboard
abstract fun warn(p: String)