warn

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

Lazy add a log message if isWarnEnabled is true


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

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

abstract fun warn(msg: String?)

Log a message at the WARN level.

Parameters

msg

the message string to be logged


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

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

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

Parameters

format

the format string

arg

the argument


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

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

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

Parameters

format

the format string

arguments

a list of 3 or more arguments


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

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

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

Parameters

format

the format string

arg1

the first argument

arg2

the second argument


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

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

Parameters

msg

the message accompanying the exception

t

the exception (throwable) to log


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

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

Parameters

marker

The marker specific to this log statement

msg

the message string to be logged


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

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

Parameters

marker

the marker data specific to this log statement

format

the format string

arg

the argument


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

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

Parameters

marker

the marker data specific to this log statement

format

the format string

arg1

the first argument

arg2

the second argument


abstract fun warn(    marker: Marker?,     format: String?,     vararg arguments: Any?)

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

Parameters

marker

the marker data specific to this log statement

format

the format string

arguments

a list of 3 or more arguments


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

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

Parameters

marker

the marker data for this log statement

msg

the message accompanying the exception

t

the exception (throwable) to log


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

Lazy add a log message if isWarnEnabled is true


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

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

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

Lazy add a log message if isWarnEnabled is true


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

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

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

Lazy add a log message if isWarnEnabled is true


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

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


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

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


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

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