0.2.0 • Published 10 months ago

pino-rotate v0.2.0

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

pino-rotate

A pino transport for rotating log files

npm install --save pino-rotate

Example

const logger = pino({
  level: 'debug',
  transport: {
    targets: [
      {
        target: 'pino-rotate',
        options: {
          file: './logs/app-%YYYY-MM-DD%.log',
          limit: '7d',
        },
      }
    ]
  }
})
0.2.0

10 months ago

0.1.0

11 months ago

0.0.1

11 months ago