From 0d52098606848b7150ec931a37b3ced5c70eda95 Mon Sep 17 00:00:00 2001 From: Ben Olden-Cooligan Date: Thu, 21 Dec 2023 06:17:31 -0800 Subject: [PATCH] Limit errorlog.txt archive files to 1 --- NAPS2.Lib/NLogConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NAPS2.Lib/NLogConfig.cs b/NAPS2.Lib/NLogConfig.cs index 3362e48e8..d80ee6d42 100644 --- a/NAPS2.Lib/NLogConfig.cs +++ b/NAPS2.Lib/NLogConfig.cs @@ -23,7 +23,7 @@ public static class NLogConfig FileName = Path.Combine(Paths.AppData, "errorlog.txt"), Layout = "${longdate} ${processid} ${message} ${exception:format=tostring}", ArchiveAboveSize = 100000, - MaxArchiveFiles = 5, + MaxArchiveFiles = 1, ConcurrentWrites = true }; var debugTarget = new FileTarget