Use classical rotation scheme for log rotation
This commit is contained in:
parent
45dbe4d145
commit
58bdf36254
2 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ export function initialize(): void {
|
|||
const logFile = path.join(basePath, 'logs', 'app.log');
|
||||
const stream = createStream(logFile, {
|
||||
interval: '1d',
|
||||
maxFiles: 3,
|
||||
rotate: 3,
|
||||
});
|
||||
|
||||
globalLogger = pino(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue