Registry / observability / pino
library0.6.0jsnpmunverified

Pino is a super fast, all-natural JSON logger for Node.js. The current stable version is 10.3.1. The library is actively maintained with frequent minor releases, typically addressing bug fixes, performance improvements, and feature enhancements for its core logging and transport functionalities.

npm install pino
INSTALL
IMPORT
SIG · PINO
P
pino
observabilityjavascriptv0.6.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pino
import pino from 'pino'
Pino supports both ESM imports and CommonJS `require()` syntax.

Initializes a Pino logger and demonstrates basic info logging and creating a child logger with additional properties.

import pino from 'pino'; const logger = pino(); logger.info('hello world'); const child = logger.child({ a: 'property' }); child.info('hello child!');
Debug
Known issues
breakingPino v10 drops support for Node.js 18.
fix
Upgrade your Node.js runtime to version 20 or newer, or stick to Pino v9.x.
affects: >=10.0.0
breakingThe type signature for the `censor` function used in redaction has been updated for improved safety, potentially causing TypeScript errors or runtime issues if using previous, less safe types.
fix
Review and update your `censor` function implementations to match the safer type definitions introduced in v10.1.0. Consult the official Pino redaction documentation for guidance.
affects: >=10.1.0
gotchaWhen using Pino transports in worker threads, certain Node.js monitoring tools or `--import` preload options can lead to `ERR_WORKER_INVALID_EXEC_ARGV` errors or memory leaks.
fix
Ensure your Pino version is at least 10.3.1 for fixes related to `NODE_OPTIONS` sanitization and `ERR_WORKER_INVALID_EXEC_ARGV`. Avoid using `--import` preloads with transports if possible, or consult Pino transport documentation for recommended practices.
affects: >=10.0.0
gotchaPino's transport level filtering behavior might not be immediately intuitive. Logs are filtered by the transport's level, not necessarily the parent logger's level.
fix
Explicitly configure transport levels if you require specific filtering. Refer to the 'Transports' documentation for detailed examples on level filtering.
affects: >=10.3.1
Errors
Common errors & fixes
ERR_WORKER_INVALID_EXEC_ARGV
Using Pino transports in worker threads with specific monitoring tools or `NODE_OPTIONS` preload configurations.
fix
Upgrade to Pino v10.2.1 or newer. Ensure Node.js environment variables (like `NODE_OPTIONS`) are correctly sanitized or avoid conflicting preload settings when using worker-based transports.
TypeError: Argument of type '...' is not assignable to parameter of type '(...)'
Pino v10.1.0 introduced stricter type definitions for the `censor` function signature, leading to TypeScript compilation errors for older, less safe implementations.
fix
Adjust the signature of your `censor` function to align with the updated, safer types provided by Pino v10.1.0 and later. Consult the Pino redaction documentation for the correct signature.
Upgrade
Version history
0.6.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
OpenAI (training)
2
Amazon
1
Resources
pino — npm install pino · libregistry