You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2025-04-29-nlog-6-0-major-changes.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,8 @@ NLog FileTarget no longer has the following archive-options:
73
73
The `ArchiveSuffixFormat`-option has been introduced to replace `{#}`, and instead of specifying
74
74
`archiveFilename="LogFile_{##}.txt"` then one should specify `archiveFilename="LogFile.txt"` with `archiveSuffixFormat="_{1:yyyyMMdd}_{0:00}"`.
75
75
The `ArchiveSuffixFormat`-option specifies the filename-suffix to apply, when the archive-logic is rolling to the next file.
76
-
It is intended to be very basic to simplify the file-wildcard-logic, and has no NLog Layout-logic. Instead it works like `string.Format` with support for these place-holders:
76
+
To make the suffix as predictable as possible to help simplify the file-wildcard-logic, then it has no NLog Layout-logic
77
+
and is just a simple `string.Format` with support for these place-holders:
77
78
-`{0}` - The archive sequence-number. Supports format option `{0:000}`.
78
79
-`{1}` - The archive created-datetime. Supports format option `{1:yyyyMMdd}` (Only works when also specifying `archiveFileName="..."`).
0 commit comments