Skip to content

Commit eecc217

Browse files
committed
NLog v6 - EnableArchiveFileCompression alternative NLog.Targets.ConcurrentFile nuget-package
1 parent 78e7f00 commit eecc217

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ Alternative options for replacing `EnableArchiveFileCompression = true`:
101101
- Setup cron-job / scheduled-task that performs ZIP-compression and cleanup of the logging-folder.
102102
- Implement background task in the application, which monitors the logging-folder and performs ZIP-compression and cleanup.
103103
- 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.
104105

105106
### NLog FileTarget without ConcurrentWrites
106107

@@ -125,11 +126,7 @@ Alternative options for replacing `ConcurrentWrites = true`:
125126
- 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"`)
126127
- Change to use `KeepFileOpen = false` where file is opened / closed when writing LogEvents. For better performance then consider to also use `<targets async="true">`.
127128
- 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.
133130

134131
### NLog AtomicFileTarget without mutex
135132

0 commit comments

Comments
 (0)