NLog.Targets.AtomicFile
6.0.4
dotnet add package NLog.Targets.AtomicFile --version 6.0.4
NuGet\Install-Package NLog.Targets.AtomicFile -Version 6.0.4
<PackageReference Include="NLog.Targets.AtomicFile" Version="6.0.4" />
<PackageVersion Include="NLog.Targets.AtomicFile" Version="6.0.4" />
<PackageReference Include="NLog.Targets.AtomicFile" />
paket add NLog.Targets.AtomicFile --version 6.0.4
#r "nuget: NLog.Targets.AtomicFile, 6.0.4"
#:package NLog.Targets.AtomicFile@6.0.4
#addin nuget:?package=NLog.Targets.AtomicFile&version=6.0.4
#tool nuget:?package=NLog.Targets.AtomicFile&version=6.0.4
NLog AtomFile Target
NLog File Target writing to file using operating system API for atomic file appending (O_APPEND), so multiple processes can write concurrently to the same file.
If having trouble with output, then check NLog InternalLogger for clues. See also Troubleshooting NLog
See the NLog Wiki for available options and examples.
Linux Support
Linux requires platform specific publish for Mono.Posix.NETStandard nuget-package:
dotnet publish with --framework net8.0 --configuration release --runtime linux-x64
Register Extension
NLog will only recognize type-alias AtomFile
when loading from NLog.config
-file, if having added extension to NLog.config
-file:
<extensions>
<add assembly="NLog.Targets.AtomicFile"/>
</extensions>
Alternative register from code using fluent configuration API:
LogManager.Setup().SetupExtensions(ext => {
ext.RegisterTarget<NLog.Targets.AtomicFileTarget>();
});
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows7.0 is compatible. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Framework | net35 is compatible. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 3.5
- NLog (>= 6.0.4)
-
.NETFramework 4.6
- NLog (>= 6.0.4)
-
net8.0
- Mono.Posix.NETStandard (>= 1.0.0)
- NLog (>= 6.0.4)
-
net8.0-windows7.0
- NLog (>= 6.0.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on NLog.Targets.AtomicFile:
Package | Downloads |
---|---|
ITSS.SimpleLogs
Simple implementation of ASP.NET logs |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on NLog.Targets.AtomicFile:
Repository | Stars |
---|---|
Revolutionary-Games/Thrive-Launcher
Thrive Launcher for installing and automatically updating Thrive
|
AtomFile Target Docs:
https://github.com/NLog/NLog/wiki/Atomic-File-target