logIfDebug

fun Logger.logIfDebug(message: String, level: LogLevel = LogLevel.INFO)

Logs a message at the specified log level if the debug mode is enabled. If the debug mode is not enabled, the message will be logged using the debug level.

Parameters

message

The message to be logged.

level

The log level at which the message should be logged. Defaults to LogLevel.INFO.