Back to all reviewers

Logging levels hierarchy

continuedev/continue
Based on 2 comments
TSX

Use appropriate logging levels to prevent debug noise from leaking into production environments. Reserve console.log() for important application events, and use console.debug() for development information that should not be visible to end users.

Logging TSX

Reviewer Prompt

Use appropriate logging levels to prevent debug noise from leaking into production environments. Reserve console.log() for important application events, and use console.debug() for development information that should not be visible to end users.

Example:

// Avoid: Debug information using console.log
console.log("Required fields values:", required);

// Better: Use console.debug for development information
console.debug("Required fields values:", required);

// Best: Remove debug logs before production deployment or implement
// a logging framework that controls log visibility by environment

This practice reduces noise in production logs, making important messages more visible while still allowing developers to include helpful debugging information during development.

2
Comments Analyzed
TSX
Primary Language
Logging
Category

Source Discussions