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

error

fun error(msg: String): Unit

Just like Logger.error

Parameters

msg - Message to log

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

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

Parameters

msg - Lambda to execute