Pino is a very low overhead JavaScript logger that writes log records as JSON. It is built to run on Node.js, and also works on Bare and Pear through the pino-bare compatibility module. It supports child loggers that carry extra properties, and log processing is handled by "transports" that the README recommends running in a worker thread.
Install & use
Install
npm install pino
Usage
const logger = require('pino')()
pinojs/pino is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.
Features
Writes log output as JSON lines
Child loggers that add bound properties
Transports API for log processing in a worker thread
pino-pretty module for formatting logs in development
Redaction support
Bundling support with tools like webpack or esbuild
Best for
Node.js applications that need low-overhead logging
Services that emit structured JSON logs
Apps that want to format logs for development with pino-pretty
Projects using web frameworks such as Fastify, Express or Koa
Pros
Very low overhead, with the README stating Pino is over 5x faster than alternatives in many cases
Built to run on Node.js
Supports bundling with webpack or esbuild
Log processing can be moved to a separate process or thread via transports
Cons
Requires Node.js, or Bare/Pear with the pino-bare compatibility module
The README recommends running log processing in a separate process or thread because of Node's single-threaded event loop
Development formatting needs the separate pino-pretty module
Serverless Framework – Effortlessly build apps that auto-scale, incur zero costs when idle, and require minimal maintenance using AWS Lambda and other managed cloud…
SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features…