What problem does it solve?
This Skill prevents production debugging from turning into guesswork by standardizing structured logging, log levels, redaction, and request correlation across TypeScript services and browser analytics.
Core Features & Use Cases
- Event-name-first structured logging: Log searchable domain events with context objects for consistent filtering and analytics.
- Sensitive data protection: Redact secrets and avoid logging PII (emails, tokens, passwords, SSNs) to reduce breach risk.
- Request correlation with requestId: Use
logger.child() to propagate a shared requestId through request lifecycles.
- Cross-platform observability: Pair server-side pino logs with PostHog capture and safe Edge Function shipping patterns.
- Log level discipline: Use
trace/debug/info/warn/error/fatal with clear paging guidance and operational intent.
Quick Start
Use the code-logging skill to tell the AI how to replace your console logging with pino event-name-first logs, add requestId correlation via logger.child, and configure redaction and PostHog session replay masking for your app.