What problem does it solve?
Inconsistent use of console.error and console.warn across a monorepo pollutes monitoring tools like Datadog RUM and Sentry with noise, making real errors hard to spot. This Skill establishes a clear convention so logs are routed correctly.
Core Features & Use Cases
- Error Level Discipline: Reserves console.error exclusively for illegal or unexpected program states that should never occur in production.
- Warning Guidance: Directs expected or recoverable failures (network issues, unavailable optional features) to console.warn.
- Noise Reduction: Encourages dropping logs entirely when an error is neither actionable nor surprising.
- Use Case: When adding error handling to a new feature in the Ledger Live monorepo, consult this convention to choose the correct console level so monitoring dashboards stay clean.
Quick Start
Ask the AI to review your new code's console logging statements and align them with the monorepo's console.error and console.warn convention.