foundation-logging
Set up structured logging and basic observability
SKILL.md.claude/skills/foundation-logging/SKILL.md
GitHubFoundation — Logging
Set up structured logging, error tracking, and basic observability.
Process
- Configure structured logging (JSON format for production, human-readable for dev)
- Set up log levels: DEBUG, INFO, WARNING, ERROR
- Add correlation IDs for request tracing
- Configure log sinks (stdout for containers, file for local)
- Add request/response logging middleware for APIs
- Set up error tracking hooks (ready for Sentry/similar integration)
- Document log format and conventions
Rules
- Never log secrets or PII
- Structured JSON in production, pretty in dev
- Every error must include context (what was happening, what failed)
- Log level configurable via environment