error

abstract fun error(message: String, throwable: Throwable? = null)

Logs an error message, optionally with a throwable.

Parameters

message

The message to log.

throwable

Optional exception to include in the log.