fun error(msg: String): Unit
Just like Logger.error
msg - Message to log
msg
fun error(msg: () -> Any): Unit
Executes given lambda and logs its result with Logger.error. Allows lazy evaluation of logging message.
msg - Lambda to execute