Skip to content

tvrcgo/pino-rotate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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