warn

fun warn(throwable: Throwable? = null, attrs: AttrBuilder.() -> Unit = {}, message: () -> String)(source)

Logs a warning message.

Parameters

throwable

An optional exception.

attrs

A builder for adding structured attributes.

message

A lambda that returns the log message.