Skills DirectorySearch all skills ↗

AI agent skill · by @LedgerHQ

Console Log

Convention for console logging levels across the monorepo.

Archived 2026-10-23 · Source updated 2026-10-12 · License: MIT. Check the original repository for the latest version.

SKILL.md instructions

# Console Logging Convention

`console.error` is intercepted by monitoring tools (Datadog RUM, Sentry) and forwarded as an error event.

- Use `console.warn` for expected or recoverable errors (network failures, optional feature unavailable, etc.)
- Use `console.error` **only** for illegal/unexpected program states that should never occur in production
- Prefer dropping the log entirely when the error is neither actionable nor surprising

Related skills