e

inline fun e(context: Any, throwable: Throwable? = null, message: () -> String)

Logs an error message.

Error messages are logged when logLevel is LogLevel.WarningsAndErrors or higher. Use for serious problems that should always be logged.

Parameters

context

Context for the log tag (typically this, a Class, or a String)

throwable

Optional exception to include in the log

message

Lazy message supplier that is only evaluated when logging is enabled