Aller au contenu

Inappropriate Log Level (ARCH8161)

Ce contenu n’est pas encore disponible dans votre langue.

Key kotlin.logging.inappropriate-log-level · Severity info · Category logging

Flags failures logged at info / debug inside catch blocks, and routine flow logged at error.

catch (e: Exception) { log.info("failed", e) }
catch (e: Exception) { log.error("failed", e) }

Log failures at warn / error; keep info for state changes and debug for diagnostics.