NLog.Extensions.Logging 5.3.2
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.Extensions.Hosting
NLog extension for Microsoft.Extensions.Hosting for logging in .NET Standard libraries and .NET Core applications using IHostBuilder.
For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
|
1 |
|
NLog.Extensions.Hosting
NLog extension for Microsoft.Extensions.Hosting for logging in .NET Standard libraries and .NET Core applications using IHostBuilder.
For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
|
5 |
|
NLog.Extensions.Hosting
NLog extension for Microsoft.Extensions.Hosting for usage in .NET Standard libraries and net core applications making use of the generic Host class introduced in netcore 2.1
|
1 |
|
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
1 |
|
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
|
1 |
|
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.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
|
1 |
|
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
|
1 |
|
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 |
ChangeLog:
- Updated to NLog v5.2.2 (#680) (@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.2)
- Microsoft.Extensions.Logging (>= 2.1.0)
.NET Standard 2.1
- NLog (>= 5.2.2)
- Microsoft.Extensions.Logging (>= 3.1.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 3.1.0)
.NET Standard 2.0
- NLog (>= 5.2.2)
- 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.2)
.NET Standard 1.5
- NLog (>= 5.2.2)
- 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.2)
- NETStandard.Library (>= 1.6.0)
- Microsoft.Extensions.Logging.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 1.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 6.1.2 | 0 | 2026/2/28 |
| 6.1.1 | 0 | 2026/1/31 |
| 6.1.0 | 0 | 2025/11/12 |
| 6.0.6 | 0 | 2025/11/9 |
| 6.0.5 | 0 | 2025/10/9 |
| 6.0.4 | 0 | 2025/9/11 |
| 6.0.3 | 0 | 2025/8/10 |
| 6.0.2 | 0 | 2025/7/20 |
| 6.0.1 | 0 | 2025/6/28 |
| 6.0.0 | 0 | 2025/6/21 |
| 5.5.0 | 0 | 2025/5/29 |
| 5.4.0 | 0 | 2025/2/2 |
| 5.3.15 | 0 | 2024/11/21 |
| 5.3.14 | 0 | 2024/9/23 |
| 5.3.13 | 0 | 2024/9/12 |
| 5.3.12 | 0 | 2024/8/12 |
| 5.3.11 | 3 | 2024/11/21 |
| 5.3.10 | 0 | 2024/4/30 |
| 5.3.9 | 0 | 2024/4/27 |
| 5.3.8 | 0 | 2023/12/29 |
| 5.3.7 | 0 | 2023/12/6 |
| 5.3.5 | 0 | 2023/10/15 |
| 5.3.4 | 0 | 2023/9/6 |
| 5.3.3 | 0 | 2023/8/5 |
| 5.3.2 | 2 | 2025/9/30 |
| 5.3.1 | 0 | 2023/7/1 |
| 5.3.0 | 0 | 2023/5/30 |
| 5.2.5 | 0 | 2023/5/25 |
| 5.2.3 | 0 | 2023/3/28 |
| 5.2.2 | 0 | 2023/2/17 |
| 5.2.1 | 0 | 2022/12/29 |
| 5.2.0 | 0 | 2022/11/27 |
| 5.1.0 | 0 | 2022/10/25 |
| 5.0.4 | 0 | 2022/9/1 |
| 5.0.3 | 0 | 2022/8/31 |
| 5.0.2 | 0 | 2022/8/12 |
| 5.0.1 | 0 | 2022/6/23 |
| 5.0.0 | 0 | 2022/5/17 |
| 1.7.5 | 1 | 2026/3/31 |
| 1.7.4 | 1 | 2025/7/14 |
| 1.7.3 | 0 | 2021/6/15 |
| 1.7.2 | 0 | 2021/3/26 |
| 1.7.1 | 0 | 2021/2/26 |
| 1.7.0 | 0 | 2020/12/29 |
| 1.6.5 | 0 | 2020/8/27 |
| 1.6.4 | 0 | 2020/5/20 |
| 1.6.3 | 1 | 2026/4/11 |
| 1.6.2 | 1 | 2025/8/29 |
| 1.6.1 | 0 | 2019/10/19 |
| 1.6.0 | 0 | 2019/10/7 |
| 1.5.4 | 0 | 2019/9/6 |
| 1.5.3 | 0 | 2019/8/28 |
| 1.5.2 | 0 | 2019/7/14 |
| 1.5.1 | 15 | 2025/2/28 |
| 1.5.0 | 0 | 2019/4/30 |
| 1.4.0 | 0 | 2019/1/16 |
| 1.3.0 | 0 | 2018/9/22 |
| 1.2.1 | 0 | 2018/8/5 |
| 1.2.0 | 0 | 2018/7/20 |
| 1.1.0 | 0 | 2018/5/25 |
| 1.0.2 | 1 | 2026/4/11 |
| 1.0.1 | 0 | 2018/4/7 |
| 1.0.0 | 0 | 2018/3/25 |