Skip to content

Commit 0da0809

Browse files
committed
NLog v6 - FileTarget with ArchiveSuffixFormat
1 parent 18abd17 commit 0da0809

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2025-04-29-nlog-6-0-major-changes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Old Configuration Example:
8080
```xml
8181
<target xsi:type="file" name="logfile"
8282
fileName="logfile.txt"
83-
archiveFilename="logfile.{#}.txt"
83+
archiveFilename="logfile_{#}.txt"
8484
archiveNumbering="Date"
8585
archiveEvery="Day"
8686
archiveDateFormat="yyyyMMdd" />
@@ -91,7 +91,7 @@ New Configuration Example:
9191
fileName="logfile.txt"
9292
archiveFilename="logfile.txt"
9393
archiveEvery="Day"
94-
archiveSuffixFormat="{1:yyyyMMdd}" />
94+
archiveSuffixFormat="_{1:yyyyMMdd}" />
9595
```
9696

9797
Alternative options for replacing `EnableArchiveFileCompression = true`:

0 commit comments

Comments
 (0)