Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
More aggressive log retention policy
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Apr 7, 2022
1 parent ebc6ec5 commit 97be14a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Update/Logging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ public SetupLogLogger(bool saveInTemp, UpdateAction action)
FileName = Path.Combine(dir, name),
Layout = new NLog.Layouts.SimpleLayout("${longdate} [${level:uppercase=true}] - ${message}"),
ArchiveFileName = Path.Combine(dir, archivename),
ArchiveAboveSize = 4_000_000 /* 4 MB */,
ArchiveAboveSize = 2_000_000 /* 2 MB */,
ArchiveNumbering = ArchiveNumberingMode.Sequence,
ConcurrentWrites = true, // should allow multiple processes to use the same file
KeepFileOpen = true,
MaxArchiveFiles = 3 /* MAX 16mb of log data per "action" */,
MaxArchiveFiles = 2 /* MAX 6mb of log data per "action" */,
},
NLog.LogLevel.Debug
);
Expand Down

0 comments on commit 97be14a

Please sign in to comment.