skrypton-api / com.waicool20.skrypton.util / KLogger / warn

warn

fun warn(msg: String): Unit

Just like Logger.warn

Parameters

msg - Message to log

fun warn(msg: () -> Any): Unit

Executes given lambda and logs its result with Logger.warn. Allows lazy evaluation of logging message.

Parameters

msg - Lambda to execute