Technology
Pino
Dash0 Node.js logger provides minimal overhead for efficient log collection and system visibility.
Overview
Overview
Pino is a fast, lightweight logging package for Node.js applications. Known for its minimal overhead and focus on performance, Pino is designed to efficiently generate structured logs in JSON format.
Want AI to set this up for you? Install the Dash0 Agent Skills to let Claude Code, Cursor, or Windsurf instrument your application automatically with OpenTelemetry best practices.
Use Cases
- Send your Pino logs to Dash0 for storage and analytics.
- Understand errors.
- Correlate logs to traces to gain valuable context.
Setup
Configuring Pino
Pino produces JSON log records by default. To get the most out of Pino, we recommend the following:
- Model log levels as string labels instead of numbers. The Pino numbers do not follow any standard and cannot be generically interpreted as errors, warnings, etc. Turning the numbers into labels improves readability for humans and machines alike.
- If you don't yet have a log export mechanism in place, we recommend using Pino's OpenTelemetry transport. No further configuration is necessary if you followed our Node.js auto-instrumentation guidelines.