---
name: "pino-extreme-performance-logger"
description: "Log structured JSON events at maximum throughput with asynchronous destination logging."
metadata:
  author: "Pino"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "configure pino logger"
  - "redact sensitive fields pino"
  - "async destination pino"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Pino Ultra-Fast Low-Overhead JSON Logger for Node.js

Configures Pino logger: structuring child loggers with context bindings (reqId, tenantId), log levels (debug, info, error), custom serializers, redaction of sensitive keys (password, authorization), and pino-pretty for development.

## When to Invoke
Invoke this skill whenever you need to:
- configure pino logger
- redact sensitive fields pino
- async destination pino

## Execution SOP & Rules
1. Initialize logger: const logger = pino({ level: 'info', redact: ['req.headers.authorization', '*.password'] }).
2. For extreme performance: use pino.destination({ sync: false }) to avoid blocking event loop on disk I/O.
3. Create child logger per request: const reqLogger = logger.child({ reqId: req.id }).
4. Pipe through pino-pretty in development only; keep raw newline-delimited JSON in production.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
