Slf4jLogger

abstract class Slf4jLogger<T> : KLogger, DelegatingKLogger<T>

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val name: String

Return the name of this Logger instance.

Link copied to clipboard
abstract val underlyingLogger: T

The actual logger executing logging

Functions

Link copied to clipboard
abstract fun at(level: Level, marker: Marker? = null, block: KLoggingEventBuilder.() -> Unit)

Lazy add a log message if level enabled

Link copied to clipboard
open fun atDebug(marker: Marker? = null, block: KLoggingEventBuilder.() -> Unit)

Lazy add a log message with throwable payload if isDebugEnabled is true

Link copied to clipboard
open fun atError(marker: Marker? = null, block: KLoggingEventBuilder.() -> Unit)

Lazy add a log message with throwable payload if isErrorEnabled is true

Link copied to clipboard
open fun atInfo(marker: Marker? = null, block: KLoggingEventBuilder.() -> Unit)

Lazy add a log message with throwable payload if isInfoEnabled is true

Link copied to clipboard
open fun atTrace(marker: Marker? = null, block: KLoggingEventBuilder.() -> Unit)

Lazy add a log message with throwable payload if isTraceEnabled is true

Link copied to clipboard
open fun atWarn(marker: Marker? = null, block: KLoggingEventBuilder.() -> Unit)

Lazy add a log message with throwable payload if isWarnEnabled is true

Link copied to clipboard
open fun <T : Throwable> catching(throwable: T)

Add a log message indicating an exception is caught along with the stack trace.

Link copied to clipboard
open fun debug(message: () -> Any?)
open fun debug(throwable: Throwable?, message: () -> Any?)
open fun debug(throwable: Throwable?, marker: Marker?, message: () -> Any?)

Lazy add a log message if isDebugEnabled is true

open fun debug(msg: String?)

Log a message at the DEBUG level.

open fun debug(marker: Marker?, msg: () -> Any?)

Lazy add a log message with a marker if isDebugEnabled is true

open fun debug(marker: Marker?, msg: String?)

Log a message with the specific Marker at the DEBUG level.

open fun debug(msg: String?, t: Throwable?)

Log an exception (throwable) at the DEBUG level with an accompanying message.

open fun debug(marker: Marker?, msg: String?, t: Throwable?)
open override fun debug(marker: Marker?, msg: String?, arg: Any?)
open override fun debug(marker: Marker?, msg: String?, vararg arguments: Any?)
open override fun debug(marker: Marker?, msg: String?, arg1: Any?, arg2: Any?)

This method is similar to .debug method except that the marker data is also taken into consideration.

open fun debug(marker: Marker?, t: Throwable?, msg: () -> Any?)

open override fun debug(msg: String?, arg: Any?)

Log a message at the DEBUG level according to the specified msg and argument.

open override fun debug(msg: String?, vararg arguments: Any?)
open override fun debug(msg: String?, arg1: Any?, arg2: Any?)

Log a message at the DEBUG level according to the specified msg and arguments.

Link copied to clipboard
open fun entry(vararg arguments: Any?)

Add a log message with all the supplied parameters along with method name

Link copied to clipboard
open fun error(message: () -> Any?)
open fun error(throwable: Throwable?, message: () -> Any?)
open fun error(throwable: Throwable?, marker: Marker?, message: () -> Any?)

Lazy add a log message if isErrorEnabled is true

open fun error(msg: String?)

Log a message at the ERROR level.

open fun error(marker: Marker?, msg: () -> Any?)

Lazy add a log message with a marker if isErrorEnabled is true

open fun error(marker: Marker?, msg: String?)

Log a message with the specific Marker at the ERROR level.

open fun error(msg: String?, t: Throwable?)

Log an exception (throwable) at the ERROR level with an accompanying message.

open fun error(marker: Marker?, msg: String?, t: Throwable?)
open fun error(marker: Marker?, t: Throwable?, msg: () -> Any?)

open override fun error(msg: String?, arg: Any?)

Log a message at the ERROR level according to the specified msg and argument.

open override fun error(msg: String?, vararg arguments: Any?)
open override fun error(msg: String?, arg1: Any?, arg2: Any?)

Log a message at the ERROR level according to the specified msg and arguments.

open override fun error(marker: Marker?, msg: String?, arg: Any?)
open override fun error(marker: Marker?, msg: String?, vararg arguments: Any?)
open override fun error(marker: Marker?, msg: String?, arg1: Any?, arg2: Any?)

This method is similar to .error method except that the marker data is also taken into consideration.

Link copied to clipboard
open fun exit()

Add log message indicating exit of a method

open fun <T> exit(result: T): T

Add a log message with the return value of a method

Link copied to clipboard
open fun info(message: () -> Any?)
open fun info(throwable: Throwable?, message: () -> Any?)
open fun info(throwable: Throwable?, marker: Marker?, message: () -> Any?)

Lazy add a log message if isInfoEnabled is true

open fun info(msg: String?)

Log a message at the INFO level.

open fun info(marker: Marker?, msg: () -> Any?)

Lazy add a log message with a marker if isInfoEnabled is true

open fun info(marker: Marker?, msg: String?)

Log a message with the specific Marker at the INFO level.

open fun info(msg: String?, t: Throwable?)

Log an exception (throwable) at the INFO level with an accompanying message.

open fun info(marker: Marker?, msg: String?, t: Throwable?)
open override fun info(marker: Marker?, msg: String?, arg: Any?)
open override fun info(marker: Marker?, msg: String?, vararg arguments: Any?)
open override fun info(marker: Marker?, msg: String?, arg1: Any?, arg2: Any?)

This method is similar to .info method except that the marker data is also taken into consideration.

open fun info(marker: Marker?, t: Throwable?, msg: () -> Any?)

open override fun info(msg: String?, arg: Any?)

Log a message at the INFO level according to the specified msg and argument.

open override fun info(msg: String?, vararg arguments: Any?)
open override fun info(msg: String?, arg1: Any?, arg2: Any?)

Log a message at the INFO level according to the specified msg and arguments.

Link copied to clipboard
open fun isDebugEnabled(marker: Marker? = null): Boolean

Similar to .isDebugEnabled method except that the marker data is also taken into account.

Link copied to clipboard
open fun isErrorEnabled(marker: Marker? = null): Boolean

Similar to .isErrorEnabled method except that the marker data is also taken into consideration.

Link copied to clipboard
open fun isInfoEnabled(marker: Marker? = null): Boolean

Similar to .isInfoEnabled method except that the marker data is also taken into consideration.

Link copied to clipboard
abstract fun isLoggingEnabledFor(level: Level, marker: Marker? = null): Boolean
Link copied to clipboard
open fun isLoggingOff(marker: Marker? = null): Boolean

Similar to .isLoggingOff method except that the marker data is also taken into consideration.

Link copied to clipboard
open fun isTraceEnabled(marker: Marker? = null): Boolean

Similar to .isTraceEnabled method except that the marker data is also taken into account.

Link copied to clipboard
open fun isWarnEnabled(marker: Marker? = null): Boolean

Similar to .isWarnEnabled method except that the marker data is also taken into consideration.

Link copied to clipboard
open fun <T : Throwable> throwing(throwable: T): T

Add a log message indicating an exception will be thrown along with the stack trace.

Link copied to clipboard
open fun trace(message: () -> Any?)
open fun trace(throwable: Throwable?, message: () -> Any?)
open fun trace(throwable: Throwable?, marker: Marker?, message: () -> Any?)

Lazy add a log message if isTraceEnabled is true

open fun trace(msg: String?)

Log a message at the TRACE level.

open fun trace(marker: Marker?, msg: () -> Any?)
open fun trace(marker: Marker?, t: Throwable?, msg: () -> Any?)

open fun trace(marker: Marker?, msg: String?)

Log a message with the specific Marker at the TRACE level.

open fun trace(msg: String?, t: Throwable?)

Log an exception (throwable) at the TRACE level with an accompanying message.

open fun trace(marker: Marker?, msg: String?, t: Throwable?)
open override fun trace(marker: Marker?, msg: String?, arg: Any?)
open override fun trace(marker: Marker?, msg: String?, vararg arguments: Any?)
open override fun trace(marker: Marker?, msg: String?, arg1: Any?, arg2: Any?)

This method is similar to .trace method except that the marker data is also taken into consideration.

open override fun trace(msg: String?, arg: Any?)

Log a message at the TRACE level according to the specified msg and argument.

open override fun trace(msg: String?, vararg arguments: Any?)
open override fun trace(msg: String?, arg1: Any?, arg2: Any?)

Log a message at the TRACE level according to the specified msg and arguments.

Link copied to clipboard
open fun warn(message: () -> Any?)
open fun warn(throwable: Throwable?, message: () -> Any?)
open fun warn(throwable: Throwable?, marker: Marker?, message: () -> Any?)

Lazy add a log message if isWarnEnabled is true

open fun warn(msg: String?)

Log a message at the WARN level.

open fun warn(marker: Marker?, msg: () -> Any?)

Lazy add a log message with a marker if isWarnEnabled is true

open fun warn(marker: Marker?, msg: String?)

Log a message with the specific Marker at the WARN level.

open fun warn(msg: String?, t: Throwable?)

Log an exception (throwable) at the WARN level with an accompanying message.

open fun warn(marker: Marker?, msg: String?, t: Throwable?)
open override fun warn(marker: Marker?, msg: String?, arg: Any?)
open override fun warn(marker: Marker?, msg: String?, vararg arguments: Any?)
open override fun warn(marker: Marker?, msg: String?, arg1: Any?, arg2: Any?)

This method is similar to .warn method except that the marker data is also taken into consideration.

open fun warn(marker: Marker?, t: Throwable?, msg: () -> Any?)

open override fun warn(msg: String?, arg: Any?)

Log a message at the WARN level according to the specified msg and argument.

open override fun warn(msg: String?, vararg arguments: Any?)
open override fun warn(msg: String?, arg1: Any?, arg2: Any?)

Log a message at the WARN level according to the specified msg and arguments.