NLog.Extensions.Logging 5.1.0

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
.NET 6.0 .NET Standard 1.3 .NET Framework 4.6.1
There is a newer version of this package available.
See the version list below for details.
dotnet add package NLog.Extensions.Logging --version 5.1.0
NuGet\Install-Package NLog.Extensions.Logging -Version 5.1.0
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.Extensions.Logging" Version="5.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NLog.Extensions.Logging --version 5.1.0
#r "nuget: NLog.Extensions.Logging, 5.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install NLog.Extensions.Logging as a Cake Addin
#addin nuget:?package=NLog.Extensions.Logging&version=5.1.0

// Install NLog.Extensions.Logging as a Cake Tool
#tool nuget:?package=NLog.Extensions.Logging&version=5.1.0

NLog LoggerProvider for Microsoft.Extensions.Logging for logging in .NET Standard libraries and .NET Core applications.

For ASP.NET Core, check: NLog.Web.AspNetCore

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (239)

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

Package Downloads
NLog.Web.AspNetCore The ID prefix of this package has been reserved for one of the owners of this package by

Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.

NLog.Extensions.Hosting The ID prefix of this package has been reserved for one of the owners of this package by

NLog extension for Microsoft.Extensions.Hosting for logging in .NET Standard libraries and .NET Core applications using IHostBuilder. For ASP.NET Core, check:


Gelf4NLog is an NLog target implementation to push log messages to GrayLog2.


This is a .NET Framework enhancement framework. Main features are Versioning, Finance, Currency, Foreign Exchange, Money, Pricing strategy, Telemetry, Composite Weighted Progress, Repository and Unity of Wok pattern implementation with Entity Framework Core, Network Connectivity Service and Triggering, Settings, Windows Registry configuration source, Azure Storage Repository, MongoDB Repository, NoDB Repository, Lingual and Regional Localization, Serialization, Rest Requester, Rest Repository, Dependency Injection, Composition Root Setup base classes.


Extends the default nlog library with static methods for logging and default visualization of the logged entries

GitHub repositories (53)

Showing the top 5 popular GitHub repositories that depend on NLog.Extensions.Logging:

Repository Stars
Windows system utilities to maximize productivity
🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
Smart PVR for newsgroup and bittorrent users.
A fork of Sonarr to work with movies à la Couchpotato.
NLog - Advanced and Structured Logging for Various .NET Platforms
Version Downloads Last updated
5.2.1 188,335 12/29/2022
5.2.0 303,076 11/27/2022
5.1.0 494,380 10/25/2022
5.0.4 1,050,215 9/1/2022
5.0.3 33,258 8/31/2022
5.0.2 301,725 8/12/2022
5.0.1 836,124 6/23/2022
5.0.0 1,234,430 5/17/2022
1.7.5 297,270 6/4/2022
1.7.4 8,352,667 8/25/2021
1.7.3 2,261,900 6/15/2021
1.7.2 4,899,928 3/26/2021
1.7.1 1,557,082 2/26/2021
1.7.0 2,623,056 12/29/2020
1.6.5 2,274,386 8/27/2020
1.6.4 5,986,041 5/20/2020
1.6.3 301,650 5/11/2020
1.6.2 5,895,037 3/16/2020
1.6.1 2,866,917 10/19/2019
1.6.0 6,182,887 10/7/2019
1.5.4 1,549,306 9/6/2019
1.5.3 143,646 8/28/2019
1.5.2 635,174 7/14/2019
1.5.1 2,494,950 6/5/2019
1.5.0 1,060,828 4/30/2019
1.4.0 4,037,724 1/16/2019
1.3.0 3,094,904 9/22/2018
1.2.1 1,037,399 8/5/2018
1.2.0 238,684 7/20/2018
1.1.0 481,433 5/25/2018
1.0.2 1,973,729 5/10/2018
1.0.1 678,412 4/7/2018
1.0.0 563,936 3/25/2018

- Replace NetCoreApp31 + Net50 with NetStandard2.1 + Net60 (#629) (@snakefoot)
- MicrosoftConsoleJsonLayout - Skip string-allocation for timestamp-output (#628) (@snakefoot)
- LoadConfigurationFromSection should RegisterConfigSettings without configuration assign (#627) (@snakefoot)
- Bump NLog from 5.0.4 to 5.0.5 (#630) (@snakefoot)

Full changelog:

List of major changes in NLog 5.0: