trace

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

Lazy add a log message if isTraceEnabled is true


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

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

abstract fun trace(msg: String?)

Log a message at the TRACE level.

Since

1.4

Parameters

msg

the message string to be logged


abstract fun trace(format: String?, arg: Any?)

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

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

Since

1.4

Parameters

format

the format string

arg

the argument


abstract fun trace(    format: String?,     arg1: Any?,     arg2: Any?)

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

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

Since

1.4

Parameters

format

the format string

arg1

the first argument

arg2

the second argument


abstract fun trace(format: String?, vararg arguments: Any?)

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

This form avoids superfluous string concatenation when the logger is disabled for the TRACE 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 TRACE. The variants taking .trace and .trace arguments exist solely in order to avoid this hidden cost.

Since

1.4

Parameters

format

the format string

arguments

a list of 3 or more arguments


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

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

Since

1.4

Parameters

msg

the message accompanying the exception

t

the exception (throwable) to log


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

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

Since

1.4

Parameters

marker

the marker data specific to this log statement

msg

the message string to be logged


abstract fun trace(    marker: Marker?,     format: String?,     arg: Any?)

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

Since

1.4

Parameters

marker

the marker data specific to this log statement

format

the format string

arg

the argument


abstract fun trace(    marker: Marker?,     format: String?,     arg1: Any?,     arg2: Any?)

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

Since

1.4

Parameters

marker

the marker data specific to this log statement

format

the format string

arg1

the first argument

arg2

the second argument


abstract fun trace(    marker: Marker?,     format: String?,     vararg argArray: Any?)

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

Since

1.4

Parameters

marker

the marker data specific to this log statement

format

the format string

argArray

an array of arguments


abstract fun trace(    marker: Marker?,     msg: String?,     t: Throwable?)

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

Since

1.4

Parameters

marker

the marker data specific to this log statement

msg

the message accompanying the exception

t

the exception (throwable) to log


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

Lazy add a log message if isTraceEnabled is true


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

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

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

Lazy add a log message if isTraceEnabled is true


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

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

expect abstract fun trace(msg: () -> Any?)

Lazy add a log message if isTraceEnabled is true


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

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


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

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


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

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