pino-rotate
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

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',
        },
      }
    ]
  }
})

Readme

Keywords

none

Package Sidebar

Install

npm i pino-rotate

Weekly Downloads

632

Version

0.3.0

License

none

Unpacked Size

9.23 kB

Total Files

7

Last publish

Collaborators

  • tvrcgo