From 58bdf362542394b9ad051604b5dbbf70e5564a89 Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Thu, 11 Mar 2021 19:40:59 -0500 Subject: [PATCH] Use classical rotation scheme for log rotation --- ts/logging/main_process_logging.ts | 2 +- ts/logging/set_up_renderer_logging.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/logging/main_process_logging.ts b/ts/logging/main_process_logging.ts index c2b6a6be0d13..84c6d10e8e20 100644 --- a/ts/logging/main_process_logging.ts +++ b/ts/logging/main_process_logging.ts @@ -66,7 +66,7 @@ export async function initialize(): Promise { const logFile = path.join(logPath, 'main.log'); const stream = createStream(logFile, { interval: '1d', - maxFiles: 3, + rotate: 3, }); const streams: pinoms.Streams = []; diff --git a/ts/logging/set_up_renderer_logging.ts b/ts/logging/set_up_renderer_logging.ts index 8584ef467ee2..c4d83508bca1 100644 --- a/ts/logging/set_up_renderer_logging.ts +++ b/ts/logging/set_up_renderer_logging.ts @@ -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(