NLog.Extensions.Logging 6.2.0
NLog.Extensions.Logging
NLog.Extensions.Logging integrates NLog as a logging provider for Microsoft.Extensions.Logging.
Application code can continue using ILogger<T>, while NLog provides powerful logging capabilities including:
- Capture structured message properties from the Microsoft ILogger
- Capture scope context properties from the Microsoft ILogger
BeginScope - Load NLog configuration from appsettings.json
- Routing logging output to multiple destinations via the available NLog Targets
- Enrich logging output with additional context details via the available NLog LayoutRenderers
- Rendering logging output into standard formats like JSON, CVS, W3C ELF and XML using NLog Layouts.
If using ASP.NET Core, use NLog.Web.AspNetCore.
Supported platforms:
- .NET 6, 7, 8, 9 and 10
- .NET Standard 2.0 and 2.1
- .NET 4.6.2 - 4.8
Register NLog as logging provider:
builder.Logging.ClearProviders();
builder.Logging.AddNLog();
Useful Links:
Showing the top 20 packages that depend on NLog.Extensions.Logging.
| Packages | Downloads |
|---|---|
|
NLog.Web.AspNetCore
Extend NLog with targets and layout renderers for websites and webapplications on the ASP.NET Core platform.
|
31 |
|
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
31 |
|
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
33 |
|
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
34 |
|
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
35 |
|
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
37 |
|
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
39 |
|
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
371 |
|
NLog.Web.AspNetCore
NLog LoggerProvider for Microsoft.Extensions.Logging and ASP.NET Core platform. Adds helpers and layout renderers for websites and web applications.
Supported platforms:
- For ASP.NET Core 3, .NET Core 3.0
- For ASP.NET Core 2, .NET Standard 2.0+ and .NET 4.6+
- For ASP.NET Core 1, .NET Standard 1.5+ and .NET 4.5.x
|
31 |
|
NLog.Web.AspNetCore
NLog LoggerProvider for Microsoft.Extensions.Logging and ASP.NET Core platform. Adds helpers and layout renderers for websites and web applications.
Supported platforms:
- For ASP.NET Core 3, .NET Core 3.0
- For ASP.NET Core 2, .NET Standard 2.0+ and .NET 4.6+
- For ASP.NET Core 1, .NET Standard 1.5+ and .NET 4.5.x
|
33 |
|
NLog.Web.AspNetCore
NLog LoggerProvider for Microsoft.Extensions.Logging and ASP.NET Core platform. Adds helpers and layout renderers for websites and web applications.
Supported platforms:
- For ASP.NET Core 5, .NET 5
- For ASP.NET Core 3, .NET Core 3.0
- For ASP.NET Core 2, .NET Standard 2.0+ and .NET 4.6+
- For ASP.NET Core 1, .NET Standard 1.5+ and .NET 4.5.x
|
32 |
|
NLog.Web.AspNetCore
NLog LoggerProvider for Microsoft.Extensions.Logging and ASP.NET Core platform. Adds helpers and layout renderers for websites and web applications.
Supported platforms:
- For ASP.NET Core 6, .NET 6
- For ASP.NET Core 5, .NET 5
- For ASP.NET Core 3, .NET Core 3.1
- For ASP.NET Core 2, .NET Standard 2.0+ and .NET 4.6+
|
32 |
|
NLog.Web.AspNetCore
Use NLog with the ASP.NET Core platform. Adds helpers and layout renderers for websites and webapplications.
Supported platforms:
- For ASP.NET Core 2, .NET Standard 2.0+ and .NET 4.6+
- For ASP.NET Core 1, .NET Standard 1.5+ and .NET 4.5.x
|
31 |
|
NLog.Web.AspNetCore
Use NLog with the ASP.NET Core platform. Adds helpers and layout renderers for websites and webapplications.
Supported platforms:
- For ASP.NET Core 2, .NET Standard 2.0+ and .NET 4.6+
- For ASP.NET Core 1, .NET Standard 1.5+ and .NET 4.5.x
|
32 |
|
NLog.Web.AspNetCore
Use NLog with the ASP.NET Core platform. Adds helpers and layout renderers for websites and webapplications.
Supported platforms:
- For ASP.NET Core 2, .NET Standard 2.0+ and .NET 4.6+
- For ASP.NET Core 1, .NET Standard 1.5+ and .NET 4.5.x
|
34 |
|
NLog.Web.AspNetCore
Use NLog with the ASP.NET Core platform. Adds helpers and layout renderers for websites and webapplications.
Supported platforms:
- For ASP.NET Core 2, .NET Standard 2.0+ and .NET 4.6+
- For ASP.NET Core 1, .NET Standard 1.5+ and .NET 4.5.x
|
35 |
|
NLog.Web.AspNetCore
Use NLog with the ASP.NET Core platform. Adds helpers and layout renderers for websites and webapplications.
Supported platforms:
- For ASP.NET Core 2, .NET Standard 2.0+ and .NET 4.6+
- For ASP.NET Core 1, .NET Standard 1.5+ and .NET 4.5.x
|
42 |
ChangeLog:
- [#859] Updated to NLog v6.2 (@snakefoot)
- [#855] Updated tutorials and examples for using NLog with Microsoft.Extension.Logging (@snakefoot)
Full changelog: https://github.com/NLog/NLog.Extensions.Logging/blob/master/CHANGELOG.MD
List of major changes in NLog 6.0: https://nlog-project.org/2025/04/29/nlog-6-0-major-changes.html
.NET 10.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0)
- NLog (>= 6.2.0)
- Microsoft.Extensions.Logging (>= 10.0.0)
.NET Standard 2.1
- NLog (>= 6.2.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
.NET Standard 2.0
- NLog (>= 6.2.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
.NET 8.0
- NLog (>= 6.2.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
.NET 6.0
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 6.0.0)
- NLog (>= 6.2.0)
.NET Framework 4.6.2
- NLog (>= 6.2.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 6.2.0 | 1 | 09/03/2026 |
| 6.1.4 | 10 | 07/21/2026 |
| 6.1.3 | 18 | 05/06/2026 |
| 6.1.2 | 15 | 03/03/2026 |
| 6.1.1 | 13 | 02/08/2026 |
| 6.1.0 | 29 | 11/17/2025 |
| 6.0.6 | 19 | 11/11/2025 |
| 6.0.5 | 22 | 10/11/2025 |
| 6.0.4 | 23 | 09/17/2025 |
| 6.0.3 | 26 | 08/14/2025 |
| 6.0.2 | 28 | 08/07/2025 |
| 6.0.1 | 29 | 07/03/2025 |
| 6.0.0 | 22 | 06/27/2025 |
| 6.0.0-rc4 | 23 | 06/27/2025 |
| 6.0.0-rc3 | 27 | 06/27/2025 |
| 6.0.0-rc2 | 27 | 06/07/2025 |
| 5.5.0 | 29 | 06/07/2025 |
| 5.4.0 | 36 | 02/18/2025 |
| 5.3.15 | 40 | 01/18/2025 |
| 5.3.14 | 45 | 01/04/2025 |
| 5.3.13 | 36 | 01/19/2025 |
| 5.3.12 | 31 | 01/18/2025 |
| 5.3.11 | 32 | 05/14/2024 |
| 5.3.10 | 28 | 05/13/2024 |
| 5.3.9 | 24 | 05/12/2024 |
| 5.3.8 | 373 | 03/07/2024 |
| 5.3.7 | 39 | 05/14/2024 |
| 5.3.5 | 33 | 05/14/2024 |
| 5.3.4 | 30 | 05/14/2024 |
| 5.3.3 | 27 | 05/14/2024 |
| 5.3.2 | 38 | 05/13/2024 |
| 5.3.1 | 34 | 05/12/2024 |
| 5.3.0 | 34 | 05/14/2024 |
| 5.2.5 | 29 | 05/14/2024 |
| 5.2.3 | 35 | 05/14/2024 |
| 5.2.2 | 32 | 05/13/2024 |
| 5.2.1 | 34 | 05/14/2024 |
| 5.2.0 | 30 | 05/13/2024 |
| 5.1.0 | 33 | 05/13/2024 |
| 5.0.4 | 34 | 05/14/2024 |
| 5.0.3 | 39 | 05/15/2024 |
| 5.0.2 | 39 | 05/14/2024 |
| 5.0.1 | 30 | 05/13/2024 |
| 5.0.0 | 32 | 05/13/2024 |
| 1.7.5 | 45 | 05/14/2024 |
| 1.7.4 | 36 | 05/13/2024 |
| 1.7.3 | 28 | 05/14/2024 |
| 1.7.2 | 32 | 05/14/2024 |
| 1.7.1 | 29 | 05/13/2024 |
| 1.7.0 | 41 | 05/14/2024 |
| 1.6.5 | 28 | 05/14/2024 |
| 1.6.4 | 31 | 05/14/2024 |
| 1.6.3 | 40 | 05/13/2024 |
| 1.6.2 | 32 | 05/13/2024 |
| 1.6.1 | 24 | 05/14/2024 |
| 1.6.0 | 31 | 05/13/2024 |
| 1.5.4 | 38 | 05/14/2024 |
| 1.5.3 | 36 | 05/13/2024 |
| 1.5.2 | 29 | 05/13/2024 |
| 1.5.1 | 24 | 05/14/2024 |
| 1.5.0 | 38 | 05/14/2024 |
| 1.4.0 | 28 | 05/14/2024 |
| 1.3.0 | 32 | 05/14/2024 |
| 1.2.1 | 32 | 05/13/2024 |
| 1.2.0 | 40 | 05/14/2024 |
| 1.1.0 | 28 | 05/14/2024 |
| 1.0.2 | 38 | 05/13/2024 |
| 1.0.1 | 32 | 05/14/2024 |
| 1.0.0 | 39 | 05/14/2024 |