pino-rotate
v0.2.0
Published
An pino transport for rotating log files
Downloads
61
Readme
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',
},
}
]
}
})