Skip to content

Commit

Permalink
Add rotate argument for log rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiduzk committed Apr 24, 2024
1 parent c8fe120 commit 8d95cb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/main/src/services/logger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
);

Expand Down

0 comments on commit 8d95cb6

Please sign in to comment.