Duplicate Log Message (ARCH8162)
Ce contenu n’est pas encore disponible dans votre langue.
Key kotlin.logging.duplicate-log-message · Severity info · Category logging
Flags the same log message literal used more than once in a file - the log line no longer says where it came from. For android.util.Log the message is the second argument; the tag is not a message.
Incorrect
Section titled “Incorrect”log.info("processing")...log.info("processing")Correct
Section titled “Correct”log.info("processing order {}", id)...log.info("processing refund {}", id)Make each message distinct and carry the identifying values.