debug

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(marker: Marker?, msg: () -> Any?)

Deprecated

use debug instead

Replace with

debug(null, marker, msg)

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


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

Deprecated

use debug instead

Replace with

debug(t, marker, msg)

open fun debug(msg: String?)

Deprecated

Use debug {} instead

Log a message at the DEBUG level.

Parameters

msg

the message string to be logged


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

Deprecated

Use debug {} instead

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

This form avoids superfluous object creation when the logger is disabled for the DEBUG level.

Parameters

msg

the msg string

arg

the argument


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

Deprecated

Use debug {} instead

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

This form avoids superfluous object creation when the logger is disabled for the DEBUG level.

Parameters

msg

the msg string

arg1

the first argument

arg2

the second argument


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

Deprecated

Use debug {} instead

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

This form avoids superfluous string concatenation when the logger is disabled for the DEBUG level. However, this variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the method, even if this logger is disabled for DEBUG. The variants taking .debug and .debug arguments exist solely in order to avoid this hidden cost.

Parameters

msg

the msg string

arguments

a list of 3 or more arguments


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

Deprecated

Use debug {} instead

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

Parameters

msg

the message accompanying the exception

t

the exception (throwable) to log


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

Deprecated

Use debug {} instead

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

Parameters

marker

the marker data specific to this log statement

msg

the message string to be logged


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

Deprecated

Use debug {} instead

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

Parameters

marker

the marker data specific to this log statement

msg

the msg string

arg

the argument


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

Deprecated

Use debug {} instead

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

Parameters

marker

the marker data specific to this log statement

msg

the msg string

arg1

the first argument

arg2

the second argument


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

Deprecated

Use debug {} instead

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

Parameters

marker

the marker data specific to this log statement

msg

the msg string

arguments

a list of 3 or more arguments


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

Deprecated

Use debug {} instead

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

Parameters

marker

the marker data specific to this log statement

msg

the message accompanying the exception

t

the exception (throwable) to log