Zum Inhalt springen

Print Instead Of Logger (ARCH8157)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Key kotlin.logging.print-instead-of-logger · Severity warning · Category logging

Flags println / print / System.out / System.err / printStackTrace in production code.

println("order saved: $id")
e.printStackTrace()
logger.info("order saved: {}", id)
logger.error("save failed", e)

Use the project’s logger so level, format and sink are controlled centrally.