warn

fun <Error class: unknown class>.warn(sourceComponent: String, ex: Throwable? = null, content: () -> String)

Logs a warning message using the current LoggerProvider configured in this CoroutineContext.

Parameters

sourceComponent

The name of the component that generated the event

ex

An optional exception which explains the message

content

A lambda which provides the content of the message. This content does not need to include any data from the exception (if any), which may be concatenated later based on probe behavior.


inline fun <T> <Error class: unknown class>.warn(ex: Throwable? = null, noinline content: () -> String)

Logs a warning message using the current LoggerProvider configured in this CoroutineContext.

Parameters

T

The class to use for the name of the component that generated the event

ex

An optional exception which explains the message

content

A lambda which provides the content of the message. This content does not need to include any data from the exception (if any), which may be concatenated later based on probe behavior.


fun Logger.warn(msg: String)

Add a log message if warn logging is enabled