ActualKLogger

interface ActualKLogger

Inheritors

Properties

Link copied to clipboard
abstract val isDebugEnabled: Boolean

Is the logger instance enabled for the DEBUG level?

Link copied to clipboard
abstract val isErrorEnabled: Boolean

Is the logger instance enabled for the ERROR level?

Link copied to clipboard
abstract val isInfoEnabled: Boolean

Is the logger instance enabled for the INFO level?

Link copied to clipboard
abstract val isLoggingOff: Boolean

Is the logger instance OFF?

Link copied to clipboard
abstract val isTraceEnabled: Boolean

Is the logger instance enabled for the TRACE level?

Link copied to clipboard
abstract val isWarnEnabled: Boolean

Is the logger instance enabled for the WARN level?

Link copied to clipboard
abstract val name: String

Return the name of this Logger instance.

Functions

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

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

Link copied to clipboard
abstract fun debug(msg: () -> Any?)
abstract fun debug(marker: Marker?, msg: () -> Any?)

Lazy add a log message if isDebugEnabled is true

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

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

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

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

Link copied to clipboard
abstract fun error(msg: () -> Any?)
abstract fun error(marker: Marker?, msg: () -> Any?)

Lazy add a log message if isErrorEnabled is true

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

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

Link copied to clipboard
abstract fun exit()

Add log message indicating exit of a method

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

Add a log message with the return value of a method

Link copied to clipboard
abstract fun info(msg: () -> Any?)
abstract fun info(marker: Marker?, msg: () -> Any?)

Lazy add a log message if isInfoEnabled is true

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

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

Link copied to clipboard
abstract 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
abstract fun trace(msg: () -> Any?)
abstract fun trace(marker: Marker?, msg: () -> Any?)

Lazy add a log message if isTraceEnabled is true

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

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

Link copied to clipboard
abstract fun warn(msg: () -> Any?)
abstract fun warn(marker: Marker?, msg: () -> Any?)

Lazy add a log message if isWarnEnabled is true

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

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