log

fun log(level: LogLevel, message: String, throwable: Throwable? = null)

Logs a diagnostic message with the given level, message, and optional throwable.