NLog.WindowsEventLog 6.0.0-rc4

Prefix Reserved
This is a prerelease version of NLog.WindowsEventLog.
There is a newer version of this package available.
See the version list below for details.
dotnet add package NLog.WindowsEventLog --version 6.0.0-rc4
                    
NuGet\Install-Package NLog.WindowsEventLog -Version 6.0.0-rc4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NLog.WindowsEventLog" Version="6.0.0-rc4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NLog.WindowsEventLog" Version="6.0.0-rc4" />
                    
Directory.Packages.props
<PackageReference Include="NLog.WindowsEventLog" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NLog.WindowsEventLog --version 6.0.0-rc4
                    
#r "nuget: NLog.WindowsEventLog, 6.0.0-rc4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NLog.WindowsEventLog@6.0.0-rc4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NLog.WindowsEventLog&version=6.0.0-rc4&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=NLog.WindowsEventLog&version=6.0.0-rc4&prerelease
                    
Install as a Cake Tool

NLog EventLog Target

NLog EventLog Target writes to the Windows EventLog.

If having trouble with output, then check NLog InternalLogger for clues. See also Troubleshooting NLog

See the NLog Wiki for available options and examples.

Register Extension

NLog will only recognize type-alias eventlog when loading from NLog.config-file, if having added extension to NLog.config-file:

<extensions>
    <add assembly="NLog.WindowsEventLog"/>
</extensions>

Alternative register from code using fluent configuration API:

LogManager.Setup().SetupExtensions(ext => {
   ext.RegisterTarget<NLog.Targets.EventLogTarget>();
});
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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.  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 Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on NLog.WindowsEventLog:

Package Downloads
BCXZone_Shared

Package Description

FlashLog

Global aspect logger, log by attribute only and keep your code clean

Nep.Enterprise.NCoreStndrd.Logger

NUS library to log messages from >net 6+ apps; leverages NLog

Gyldendal.LoggingManager

Package Description

Gyldendal.LoggingManagerTest

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.0.2 31 7/20/2025
6.0.1 1,950 6/27/2025
6.0.0 1,756 6/21/2025
6.0.0-rc4 122 6/15/2025
6.0.0-rc3 126 6/8/2025
6.0.0-rc2 153 6/1/2025
6.0.0-rc1 160 5/25/2025
6.0.0-preview1 176 4/29/2025
5.5.1 124 7/18/2025
5.5.0 6,243 5/29/2025
5.4.0 154,898 2/2/2025
5.3.4 512,108 9/12/2024
5.3.3 128,965 8/12/2024
5.3.2 95,473 4/30/2024
5.3.1 3,042 4/27/2024
5.2.8 170,810 12/29/2023
5.2.7 19,017 11/28/2023
5.2.6 11,897 11/19/2023
5.2.5 86,920 10/15/2023
5.2.4 200,535 9/6/2023
5.2.3 53,661 8/5/2023
5.2.2 15,938 7/4/2023
5.2.1 872 7/1/2023
5.2.0 45,201 5/30/2023
5.1.5 2,339 5/25/2023
5.1.4 24,298 4/29/2023
5.1.3 74,113 3/28/2023
5.1.2 29,703 2/17/2023
5.1.1 148,278 12/29/2022
5.1.0 23,029 11/27/2022
5.0.5 128,021 10/25/2022
5.0.4 425,348 9/1/2022
5.0.3 3,632 8/31/2022
5.0.2 39,003 8/12/2022
5.0.1 130,358 6/12/2022
5.0.0 392,007 5/16/2022
4.7.15 105,068 3/26/2022
4.7.14 28,749 2/23/2022
4.7.13 293,201 12/5/2021
4.7.12 22,505 10/24/2021
4.7.11 89,334 8/18/2021
4.7.10 204,694 5/14/2021
4.7.9 27,534 3/24/2021
4.7.8 10,028 2/25/2021
4.7.7 144,811 1/20/2021
4.7.6 129,020 12/6/2020
4.7.5 140,724 9/27/2020
4.7.4 74,713 8/22/2020
4.7.3 25,177 7/31/2020
4.7.2 58,542 5/18/2020
4.7.1 1,317 5/15/2020
4.7.0 102,825 3/20/2020
4.6.8 319,283 11/4/2019
4.6.7 34,534 8/25/2019
4.6.6 98,533 7/14/2019
4.6.5 44,717 6/14/2019
4.6.4 6,838 5/28/2019
4.6.3 8,474 4/30/2019
4.6.2 3,128 4/2/2019
4.6.1 925 3/29/2019
4.6.0 1,942 3/21/2019
4.5.11 205,542 11/6/2018
4.5.10 21,351 9/17/2018
4.5.9 7,812 8/24/2018
4.5.8 18,508 8/5/2018
4.5.6 10,335 5/29/2018