Skip to content

Commit e31b246

Browse files
committed
fix(XMLDiff): update log file deletion behavior to respect appendToLog option. Fixes #8
1 parent f9ce48a commit e31b246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XMLDiff/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ private static void ConfigureLogging(bool logToFile, bool appendToLog = false)
167167
FileName = Path.Combine(Environment.CurrentDirectory, "${processname}.log"),
168168
Layout = "${longdate} ${level} ${message} ${exception}",
169169
KeepFileOpen = true,
170-
DeleteOldFileOnStartup = true, // Overwrite the log file on each run
170+
DeleteOldFileOnStartup = !appendToLog, // Overwrite the log file on each run
171171
ArchiveAboveSize = 0,
172172
ConcurrentWrites = true,
173173
};

0 commit comments

Comments
 (0)