@naskot/node-pino-runtime-logger
v1.0.0
Published
Agnostic runtime logger service built on pino with optional PM2-aware behavior.
Downloads
219
Readme
@naskot/node-pino-runtime-logger
A lightweight, framework-agnostic pino runtime logger.
This package is designed so you can keep the same export surface as api-starter-template/src/libs/logger.ts:
pinoGenericLoggerloggerlogInternalErrorlogFatalErrorlogMasterOnlyloggerMasterOnlypurgeOldPinoInstanceExportLogspurgeOldPinoInstanceExportArchives
The only addition is a singleton service to instantiate once with your runtime config.
Install
npm i @naskot/node-pino-runtime-loggerUsage
Implementation samples are intentionally documented in framework guides:
