warn

open fun warn(message: String, throwable: Throwable? = null)

Logs a warning message, indicating a potential problem or an unexpected event.

Warnings signify that something unusual has occurred, but the application can continue to run. They should be reviewed to prevent future errors.

Parameters

message

The message string to be logged.

throwable

An optional Throwable to include for additional context, such as a stack trace.