Skip to content

Commit f488a30

Browse files
authored
Updated NLog v5 release-post with more WorkAround details for KeepFileOpen=true (#252)
1 parent 99dd313 commit f488a30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_posts/2021-08-25-nlog-5-0-preview1-ready.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,9 @@ FileTarget will now keep file handles open by default, and will not release file
580580
better performance, than to open/close the file handle for each write.
581581

582582
* **Workaround:** Explicitly specify `KeepFileOpen=false` to enforce old behavior similar to log4net/log4j MinimalLock.
583-
But if the problem comes from external application no longer being able to acquire exclusive file-lock, then it is better
584-
to fix the external application to use `FileShare.ReadWrite`.
583+
This is mostly important when FileName points to network-path on remote network-host, to avoid undetected invalidation of FileStream-handle.
584+
But if having issues with external application on the local machine, that is no longer being able to acquire exclusive file-lock,
585+
then it is better to fix the external application to use `FileShare.ReadWrite`.
585586

586587
### FileTarget ConcurrentWrites = false by default
587588
FileTarget will now by default not attempt to use operating system global mutexes for synchronized file-access between multiple applications on the same machine.

0 commit comments

Comments
 (0)