High Performance Node Logger

High Performance Node Logger

getpino.io

2

About this website

An extremely low overhead Node.js logger that processes log output in a separate thread, achieving throughput rates significantly higher than synchronous logging alternatives. In benchmarks, it logs over 70,000 lines per second in synchronous mode and handles over 400,000 lines per second in asynchronous mode with pino-worker, while maintaining CPU usage below 5 percent on standard hardware. The logger outputs structured JSON by default, enabling direct ingestion into log management systems including Elasticsearch, Loki, Datadog, and Splunk without additional parsing or transformation. Key features include child loggers that inherit and extend parent context without runtime overhead, redaction of sensitive fields like passwords and tokens at the C++ level before JavaScript execution, pretty-print transport for development, and custom transport streams for production pipelines. The transport system supports multiple destinations simultaneously, allowing logs to flow to both stdout for container orchestration and a file-based rotation system for archival. Web framework integrations exist for Express, Fastify, Hapi, and NestJS, with automatic request ID correlation, response time measurement, and request body filtering. The logger supports log levels from fatal through trace, with level filtering applied during serialization to minimize overhead for disabled levels. Extensible through plugins for serializing complex objects, adding request context, and integrating with distributed tracing systems. The project is maintained by the maintainer of the Fastify web framework and backed by infrastructure companies, ensuring long-term stability and active development.

Tags & Categories

Statistics

2
Views
0
Clicks
0
Like
0
Dislike

Comments

Log In to post a comment

No comments yet. Be the first!