Use classical rotation scheme for log rotation

This commit is contained in:
Josh Perez 2021-03-11 19:40:59 -05:00 committed by Josh Perez
parent 45dbe4d145
commit 58bdf36254
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ export async function initialize(): Promise<pinoms.Logger> {
const logFile = path.join(logPath, 'main.log');
const stream = createStream(logFile, {
interval: '1d',
maxFiles: 3,
rotate: 3,
});
const streams: pinoms.Streams = [];

View file

@ -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(