structured-logging
Installation
SKILL.md
Structured Logging
Best practices for production-ready logging in Node.js applications using Pino and structured JSON output.
Philosophy
Logs are data, not text. Structured logging treats every log entry as a queryable data point, enabling powerful analysis, alerting, and debugging in production.
Three core principles:
- Machine-readable first: JSON structure enables programmatic querying
- Context-rich: Include all relevant metadata (correlation IDs, user IDs, request info)
- Security-conscious: Never log sensitive data (passwords, tokens, PII)