NLog.Extensions.Logging 6.0.0-rc3
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 consider using NLog.Web.AspNetCore.
Supported platforms:
- .NET 5, 6, 7, 8 and 9
- .NET 2 and 3
- .NET Standard 2.0 and 2.1
- .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
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
3 |
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
|
2 |
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
|
2 |
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
|
2 |
NLog.Web.AspNetCore
Extend NLog with targets and layout renderers for websites and webapplications on the ASP.NET Core platform.
|
2 |
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
|
2 |
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 2, .NET Standard 2.0+ and .NET 4.6+
- For ASP.NET Core 1, .NET Standard 1.5+ and .NET 4.5.x
|
2 |
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
|
2 |
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
|
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 |
ChangeLog:
- Updated to NLog v6.0-RC3
- Removed support for NetStandard 1.3 + 1.5
- Enabled nullable references
- Avoid boxing when extracting LogEvent properties from struct
- Reduce allocation when creating LogEvent with properties by using ReadOnlySpan
- Enabled <IsAotCompatible>
- Added ${host-environment} for NLog.Extensions.Hosting
- Added ${host-rootdir} for NLog.Extensions.Hosting
- Added ${host-appname} for NLog.Extensions.Hosting
- Added RegisterHostSettings for NLog.Extensions.Hosting
- Updated NLog.Extensions.Hosting to support .NET Framework 4.6.2 using NET8-nuget-dependencies
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 Framework 4.6.1
- Microsoft.Extensions.Configuration.Abstractions (>= 2.1.0)
- NLog (>= 6.0.0-rc3)
- Microsoft.Extensions.Logging (>= 2.1.0)
.NET Standard 2.1
- NLog (>= 6.0.0-rc3)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
.NET Standard 2.0
- NLog (>= 6.0.0-rc3)
- Microsoft.Extensions.Configuration.Abstractions (>= 2.1.0)
- Microsoft.Extensions.Logging (>= 2.1.0)
.NET 8.0
- NLog (>= 6.0.0-rc3)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
.NET 6.0
- NLog (>= 6.0.0-rc3)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 6.0.0)
Version | Downloads | Last updated |
---|---|---|
6.0.0-rc3 | 1 | 2025/6/8 |
6.0.0-rc2 | 1 | 2025/6/4 |
5.5.0 | 3 | 2025/5/31 |
5.4.0 | 1 | 2025/5/26 |
5.3.15 | 1 | 2025/6/4 |
5.3.14 | 1 | 2025/6/4 |
5.3.13 | 1 | 2025/6/4 |
5.3.12 | 1 | 2025/5/27 |
5.3.11 | 1 | 2025/6/4 |
5.3.10 | 1 | 2025/6/4 |
5.3.9 | 1 | 2025/6/3 |
5.3.8 | 1 | 2025/6/3 |
5.3.7 | 1 | 2025/5/28 |
5.3.5 | 1 | 2025/6/4 |
5.3.4 | 1 | 2025/5/27 |
5.3.3 | 1 | 2025/6/2 |
5.3.2 | 1 | 2025/6/2 |
5.3.1 | 1 | 2025/5/29 |
5.3.0 | 1 | 2025/6/3 |
5.2.5 | 1 | 2025/6/3 |
5.2.3 | 2 | 2025/4/17 |
5.2.2 | 1 | 2025/5/29 |
5.2.1 | 1 | 2025/4/17 |
5.2.0 | 1 | 2025/6/2 |
5.1.0 | 1 | 2025/6/2 |
5.0.4 | 1 | 2025/6/3 |
5.0.3 | 1 | 2025/6/3 |
5.0.2 | 1 | 2025/5/28 |
5.0.1 | 1 | 2025/6/2 |
5.0.0 | 1 | 2025/4/17 |
1.7.5 | 1 | 2025/5/28 |
1.7.4 | 1 | 2025/5/27 |
1.7.3 | 1 | 2025/5/29 |
1.7.2 | 1 | 2025/5/29 |
1.7.1 | 1 | 2025/5/29 |
1.7.0 | 1 | 2025/6/2 |
1.6.5 | 1 | 2025/6/3 |
1.6.4 | 1 | 2025/5/28 |
1.6.3 | 1 | 2025/6/2 |
1.6.2 | 1 | 2025/5/29 |
1.6.1 | 1 | 2025/5/29 |
1.6.0 | 1 | 2025/4/17 |
1.5.4 | 1 | 2025/5/28 |
1.5.3 | 1 | 2025/6/2 |
1.5.2 | 1 | 2025/5/29 |
1.5.1 | 1 | 2025/5/29 |
1.5.0 | 1 | 2025/5/28 |
1.4.0 | 1 | 2025/5/28 |
1.3.0 | 1 | 2025/5/28 |
1.2.1 | 1 | 2025/5/27 |
1.2.0 | 1 | 2025/5/28 |
1.1.0 | 1 | 2025/5/27 |
1.0.2 | 1 | 2025/5/28 |
1.0.1 | 1 | 2025/5/28 |
1.0.0 | 1 | 2025/6/2 |