Structured Logging (ARCH8158)
هذا المحتوى غير متوفر بلغتك بعد.
Key kotlin.logging.structured-logging · Severity info · Category logging
Flags string templates / concatenation inside logger calls - the message is formatted even when the level is off and the values are not structured.
Incorrect
Section titled “Incorrect”logger.info("user $userId logged in from $ip")Correct
Section titled “Correct”logger.info("user {} logged in from {}", userId, ip)Use the logger’s placeholder syntax with arguments.