pino-logging

Installation
SKILL.md

Pino Logging

High-performance JSON logger for Node.js. Transports run in worker threads to keep the main event loop free. Produces NDJSON by default with automatic level, time, pid, hostname, and msg fields.

When to use: Structured logging in Node.js applications, request-scoped logging with correlation IDs, sensitive data redaction, multi-destination log routing, framework logging integration.

When NOT to use: Browser-only logging (pino has limited browser support), simple console.log debugging during development, projects that need human-readable logs by default (pino outputs JSON; use pino-pretty for dev).

Package: pino (v10+)

Quick Reference

Pattern API Key Points
Basic logger pino() Defaults: level info, JSON to stdout
Set level pino({ level: 'debug' }) fatal > error > warn > info > debug > trace
Log with context logger.info({ userId }, 'msg') First arg is merged object, second is message
Error logging logger.error({ err }, 'failed') Pass errors as err key for serialization
Child logger logger.child({ requestId }) Bindings persist on all child logs
Related skills
Installs
62
GitHub Stars
11
First Seen
Feb 22, 2026