logging-best-practices
Installation
SKILL.md
Logging Best Practices
Emit structured logs with Pino throughout the app.
Prerequisites
Complete these setup recipes first:
- Pino Logging Setup
Logging
Import logger from @/lib/logging/logger. Pass a context object first, message second. For errors, put err in the context object.
import { logger } from "@/lib/logging/logger";