# Console Log

> Convention for console logging levels across the monorepo.

- Skill: `ledgerhq/console-log` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ledgerhq/console-log`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ledgerhq/console-log/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ledgerhq (https://skillmd.com/u/ledgerhq)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/ledgerhq/console-log

---


# 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

