error

expect open fun error(vararg message: Any)

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

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.

Parameters

message

Set of messages to log in this entry.

See also

other variants of this method.


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

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

If error logging is not active, the producer will not be dispatched.

Parameters

producer

Function that produces the message to log.

actual open fun error(vararg message: Any)

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

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.

Parameters

message

Set of messages to log in this entry.

See also

other variants of this method.


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

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

If error logging is not active, the producer will not be dispatched.

Parameters

producer

Function that produces the message to log.