Limit errorlog.txt archive files to 1

This commit is contained in:
Ben Olden-Cooligan 2023-12-21 06:17:31 -08:00
parent 15b1c599fd
commit 0d52098606

View File

@ -23,7 +23,7 @@ public static class NLogConfig
FileName = Path.Combine(Paths.AppData, "errorlog.txt"), FileName = Path.Combine(Paths.AppData, "errorlog.txt"),
Layout = "${longdate} ${processid} ${message} ${exception:format=tostring}", Layout = "${longdate} ${processid} ${message} ${exception:format=tostring}",
ArchiveAboveSize = 100000, ArchiveAboveSize = 100000,
MaxArchiveFiles = 5, MaxArchiveFiles = 1,
ConcurrentWrites = true ConcurrentWrites = true
}; };
var debugTarget = new FileTarget var debugTarget = new FileTarget