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
|
@ -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 = [];
|
||||
|
|
|
@ -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…
Reference in a new issue