Skip to content

Commit ea2d2b3

Browse files
committed
NLog v6 - FileTarget without ConcurrentWrites (IIS AppDomain)
1 parent efadac5 commit ea2d2b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ NLog FileTarget no longer has the following options:
124124
Alternative options for replacing `ConcurrentWrites = true`:
125125
- 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.
126126
- 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+
- Update FileName to include suffix `_${appdomain:format=short}_${processid}` to support IIS that can juggle multiple AppDomains during recycle of app-pools.
127128

128129
There is also a new [NLog.Targets.ConcurrentFile](https://www.nuget.org/packages/NLog.Targets.ConcurrentFile)-nuget-package, which is
129130
the original NLog FileTarget with all its features and complexity. It supports ConcurrentWrites using global mutex,

0 commit comments

Comments
 (0)