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-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,7 @@ Alternative options for replacing `EnableArchiveFileCompression = true`:
101
101
- Setup cron-job / scheduled-task that performs ZIP-compression and cleanup of the logging-folder.
102
102
- Implement background task in the application, which monitors the logging-folder and performs ZIP-compression and cleanup.
103
103
- Use the new nuget-package [NLog.Targets.GZipFile](https://www.nuget.org/packages/NLog.Targets.GZipFile) where GZipFileTarget writes directly to a compressed log-file using `GZipStream`.
104
+
- Use the legacy nuget-package [NLog.Targets.ConcurrentFile](https://www.nuget.org/packages/NLog.Targets.ConcurrentFile) that is the original NLog v5 FileTarget with all features and complexity.
104
105
105
106
### NLog FileTarget without ConcurrentWrites
106
107
@@ -125,11 +126,7 @@ Alternative options for replacing `ConcurrentWrites = true`:
125
126
- Use the new nuget-package [NLog.Targets.AtomicFile](https://www.nuget.org/packages/NLog.Targets.AtomicFile) where AtomicFileTarget uses atomic file-appends and supports Windows / Linux with NET8 (Remember changing to `xsi:type="atomfile"`)
126
127
- Change to use `KeepFileOpen = false` where file is opened / closed when writing LogEvents. For better performance then consider to also use `<targets async="true">`.
127
128
- Update FileName to include suffix `_${appdomain:format=short}_${processid}` to support IIS that can juggle multiple AppDomains during recycle of app-pools.
128
-
129
-
There is also a new [NLog.Targets.ConcurrentFile](https://www.nuget.org/packages/NLog.Targets.ConcurrentFile)-nuget-package, which is
130
-
the original NLog FileTarget with all its features and complexity. It supports ConcurrentWrites using global mutex,
131
-
but the goal is that [NLog.Targets.ConcurrentFile](https://www.nuget.org/packages/NLog.Targets.ConcurrentFile)-nuget-package will become legacy,
132
-
but it might be helpful when upgrading to NLog v6.
129
+
- Use the legacy nuget-package [NLog.Targets.ConcurrentFile](https://www.nuget.org/packages/NLog.Targets.ConcurrentFile) that is the original NLog v5 FileTarget with all features and complexity.
0 commit comments