NLog.Extensions.Logging 5.3.3
NLog.Extensions.Logging
Integrates NLog as Logging provider for Microsoft.Extensions.Logging, by just calling AddNLog() on the Logging-builder.
Providing features like:
- 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 then check NLog.Web.AspNetCore.
Supported platforms:
- .NET 5, 6 and 7
- .NET Core 1, 2 and 3
- .NET Standard 1.3+ and 2.0+
- .NET 4.6.1 - 4.8
Registration of 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
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
|
878 |
|
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
|
587 |
|
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
45 |
|
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.
|
24 |
|
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+
|
22 |
|
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
|
22 |
|
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
22 |
|
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
|
20 |
|
NLog.Web.AspNetCore
Extend NLog with targets and layout renderers for websites and webapplications on the ASP.NET Core platform.
|
20 |
|
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
20 |
|
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+
|
19 |
|
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
|
19 |
|
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
19 |
|
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
|
18 |
|
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
|
17 |
|
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
|
17 |
|
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
|
17 |
|
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
17 |
ChangeLog:
- Updated to NLog v5.2.3 (#685) (@snakefoot)
Full changelog: https://github.com/NLog/NLog.Extensions.Logging/blob/master/CHANGELOG.MD
NLog v5.2 changes how to load extensions: https://nlog-project.org/2023/05/30/nlog-5-2-trim-warnings.html
List of major changes in NLog 5.0: https://nlog-project.org/2021/08/25/nlog-5-0-preview1-ready.html
.NET Framework 4.6.1
- Microsoft.Extensions.Configuration.Abstractions (>= 2.1.0)
- NLog (>= 5.2.3)
- Microsoft.Extensions.Logging (>= 2.1.0)
.NET Standard 2.1
- NLog (>= 5.2.3)
- Microsoft.Extensions.Logging (>= 3.1.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 3.1.0)
.NET Standard 2.0
- NLog (>= 5.2.3)
- Microsoft.Extensions.Logging (>= 2.1.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 2.1.0)
.NET 6.0
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 6.0.0)
- NLog (>= 5.2.3)
.NET Standard 1.5
- NLog (>= 5.2.3)
- Microsoft.Extensions.Logging.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 1.0.0)
- NETStandard.Library (>= 1.6.0)
.NET Standard 1.3
- NLog (>= 5.2.3)
- NETStandard.Library (>= 1.6.0)
- Microsoft.Extensions.Logging.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 1.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 6.3.0 | 1 | 11/16/2026 |
| 6.2.2 | 3 | 10/30/2026 |
| 6.2.1 | 2 | 10/01/2026 |
| 6.2.0 | 12 | 08/30/2026 |
| 6.1.4 | 14 | 07/19/2026 |
| 6.1.3 | 16 | 05/15/2026 |
| 6.1.2 | 19 | 03/04/2026 |
| 6.1.1 | 18 | 02/04/2026 |
| 6.1.0 | 16 | 11/18/2025 |
| 6.0.6 | 16 | 11/18/2025 |
| 6.0.5 | 14 | 10/15/2025 |
| 6.0.4 | 17 | 09/17/2025 |
| 6.0.3 | 17 | 08/16/2025 |
| 6.0.2 | 16 | 07/23/2025 |
| 6.0.1 | 18 | 07/23/2025 |
| 6.0.0 | 17 | 06/22/2025 |
| 6.0.0-rc4 | 12 | 06/20/2025 |
| 6.0.0-rc3 | 13 | 08/17/2025 |
| 5.5.0 | 13 | 06/21/2025 |
| 5.4.0 | 21 | 02/14/2025 |
| 5.3.15 | 31 | 12/03/2024 |
| 5.3.14 | 18 | 10/01/2024 |
| 5.3.13 | 51 | 09/16/2024 |
| 5.3.12 | 18 | 08/15/2024 |
| 5.3.11 | 39 | 06/20/2024 |
| 5.3.10 | 20 | 06/29/2024 |
| 5.3.9 | 18 | 07/14/2024 |
| 5.3.8 | 63 | 02/05/2024 |
| 5.3.7 | 21 | 12/15/2023 |
| 5.3.5 | 23 | 01/09/2024 |
| 5.3.4 | 19 | 01/09/2024 |
| 5.3.3 | 13 | 01/09/2024 |
| 5.3.2 | 23 | 01/11/2024 |
| 5.3.1 | 16 | 01/09/2024 |
| 5.3.0 | 24 | 01/09/2024 |
| 5.2.5 | 19 | 01/09/2024 |
| 5.2.3 | 18 | 01/09/2024 |
| 5.2.2 | 20 | 01/09/2024 |
| 5.2.1 | 22 | 01/09/2024 |
| 5.2.0 | 19 | 01/09/2024 |
| 5.1.0 | 18 | 01/09/2024 |
| 5.0.4 | 19 | 11/06/2022 |
| 5.0.3 | 17 | 12/27/2023 |
| 5.0.2 | 19 | 01/09/2024 |
| 5.0.1 | 17 | 08/15/2022 |
| 5.0.0 | 26 | 06/16/2022 |
| 1.7.5 | 21 | 01/09/2024 |
| 1.7.4 | 21 | 09/29/2021 |
| 1.7.3 | 596 | 07/19/2021 |
| 1.7.2 | 16 | 01/09/2024 |
| 1.7.1 | 21 | 01/09/2024 |
| 1.7.0 | 874 | 02/16/2021 |
| 1.6.5 | 23 | 01/09/2024 |
| 1.6.4 | 16 | 01/09/2024 |
| 1.6.3 | 19 | 12/30/2023 |
| 1.6.2 | 18 | 01/09/2024 |
| 1.6.1 | 15 | 01/09/2024 |
| 1.6.0 | 20 | 01/09/2024 |
| 1.5.4 | 13 | 01/09/2024 |
| 1.5.3 | 16 | 01/09/2024 |
| 1.5.2 | 18 | 01/09/2024 |
| 1.5.1 | 15 | 12/12/2023 |
| 1.5.0 | 22 | 01/09/2024 |
| 1.4.0 | 20 | 12/12/2023 |
| 1.3.0 | 19 | 01/08/2024 |
| 1.2.1 | 24 | 01/09/2024 |
| 1.2.0 | 17 | 01/09/2024 |
| 1.1.0 | 19 | 01/08/2024 |
| 1.0.2 | 19 | 01/11/2024 |
| 1.0.1 | 13 | 01/09/2024 |
| 1.0.0 | 18 | 01/09/2024 |