Inappropriate Log Level (ARCH3161)
هذا المحتوى غير متوفر بلغتك بعد.
Key typescript.logging.inappropriate-log-level · Severity info · Category logging
Misusing the log level - errors at info/debug, routine flow at error/critical - breaks monitoring and alerting. Real errors get missed and noise increases.
Incorrect
Section titled “Incorrect”try { await db.save(record);} catch (err) { logger.info("save failed", { err });}Correct
Section titled “Correct”try { await db.save(record);} catch (err) { logger.error("save failed", { err });}Log errors at error level and routine flow events at info/debug.