warn

fun warn(msg: () -> Any?): MonitorAction

Creates a MonitorAction that logs the message at WARN level and returns true.

Return

a MonitorAction that always returns true.

Parameters

msg

a lambda producing the log message.


Creates a MonitorAction that logs the message at WARN level and returns true.

Return

a MonitorAction that always returns true.

Parameters

msg

the log message string.