w

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

Logs a warning message.

Warning messages are logged when logLevel is LogLevel.WarningsAndErrors or higher. Use for potentially problematic situations that aren't necessarily errors.

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