Files
coding-agent-rules/logging.md
2025-10-04 16:16:05 -04:00

8 lines
306 B
Markdown

---
trigger: always_on
---
- Correlation IDs in backend; include in logs and echo to responses for support.
- Structured logging (JSON) in production; human-readable in dev.
- Define log levels: DEBUG (dev), INFO/WARN/ERROR (prod).
- Frontend: log to console in dev; redact PII; show user-friendly errors.