wtf

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

Logs a "What a Terrible Failure" message.

WTF messages are logged when logLevel is LogLevel.WarningsAndErrors or higher. Use for situations that should never happen.

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