A preconfigured Pino logger with colorized, human-readable output for development environments. Version 2.0.0 provides a ready-to-use logger with built-in pretty printing via pino-pretty, Pino-roll for log rotation, and Day.js for timestamps. Designed as a lightweight wrapper around Pino (currently pinned to 9.x) that eliminates boilerplate for Node.js applications. Its key differentiator is zero-config setup for colorful console logs while supporting structured JSON logging in production through the same interface.
npm install pino-pretty-logsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: instantiate Logger, then log at various levels with optional error object.
Use ESM imports (import) or downgrade to v1.x if you need CommonJS.
Use Logger.create({ level: 'debug' }) or set PINO_LOG_LEVEL environment variable.Use new Logger() or Logger.create() instead.
Ensure pino@9.x is installed as a dependency.
Import { Logger } or { getLogger } instead of the default export.Change to import statement or set type: module in package.json, or use dynamic import().
Use named import: import { Logger } from 'pino-pretty-logs'Run npm install pino or add pino to your project's dependencies.