diff --git a/packages/main/src/services/logger/index.ts b/packages/main/src/services/logger/index.ts index 8f7504feff..258b5a0094 100644 --- a/packages/main/src/services/logger/index.ts +++ b/packages/main/src/services/logger/index.ts @@ -9,8 +9,9 @@ timber.hookConsole(); const errorLogStream = rts.createStream( path.join(app.getPath('userData'), 'logs', 'nuclear-error.log'), { - size: '5M', - compress: 'gzip' + size: '1M', + compress: 'gzip', + rotate: 5 // arbitrary value to specify the number of rotations } );