Skip to content

Commit 18abd17

Browse files
committed
NLog v6 - FileTarget with ArchiveSuffixFormat
1 parent 2bd298f commit 18abd17

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
@@ -83,15 +83,15 @@ Old Configuration Example:
8383
archiveFilename="logfile.{#}.txt"
8484
archiveNumbering="Date"
8585
archiveEvery="Day"
86-
archiveDateFormat="yyyyMMdd">
86+
archiveDateFormat="yyyyMMdd" />
8787
```
8888
New Configuration Example:
8989
```xml
9090
<target xsi:type="file" name="logfile"
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)