Skip to content

Commit 0f3de41

Browse files
committed
NLog v6 - Preview1 (KeepFileOpen=false with async=true)
1 parent d20c2a9 commit 0f3de41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The goal is that [NLog.Targets.ConcurrentFile](https://www.nuget.org/packages/NL
8181

8282
Alternative options for replacing `ConcurrentWrites = true`:
8383
- 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.
84-
- Change to use `KeepFileOpen = false` where file is opened / closed when writing LogEvents. Recommended to use `<targets async="true">`.
84+
- Change to use `KeepFileOpen = false` where file is opened / closed when writing LogEvents. To avoid performance issues, then consider to also use `<targets async="true">`.
8585

8686
Alternative options for replacing `EnableArchiveFileCompression = true`:
8787
- Activate NTFS compression for the logging-folder.

0 commit comments

Comments
 (0)