warning

expect open fun warning(vararg message: Any)

Log one or more arbitrary messages to the console or log, at the level of LogLevel.WARN.

Each argument is expected to be a string. For automatic string conversion or direct log level control, see log. To engage in string formatting, or callable log messages, see other variants of this same method.

This method is a thin alias for the equivalent warn call.

Parameters

message

Set of messages to log in this entry.

See also

other variants of this method.


expect open fun warning(producer: () -> String)

Log the message produced by the provided producer, at the level of LogLevel.WARN, assuming warn-level logging is currently enabled.

If warn logging is not active, the producer will not be dispatched. This method is a thin alias for the equivalent warn call.

Parameters

producer

Function that produces the message to log.

actual open fun warning(vararg message: Any)

Log one or more arbitrary messages to the console or log, at the level of LogLevel.WARN.

Each argument is expected to be a string. For automatic string conversion or direct log level control, see log. To engage in string formatting, or callable log messages, see other variants of this same method.

This method is a thin alias for the equivalent warn call.

Parameters

message

Set of messages to log in this entry.

See also

other variants of this method.


actual open fun warning(producer: () -> String)

Log the message produced by the provided producer, at the level of LogLevel.WARN, assuming warn-level logging is currently enabled.

If warn logging is not active, the producer will not be dispatched. This method is a thin alias for the equivalent warn call.

Parameters

producer

Function that produces the message to log.