NLog.Extensions.Logging 6.1.1

NLog.Extensions.Logging

Integrates NLog as Logging provider for Microsoft.Extensions.Logging, by just calling AddNLog() on the Logging-builder.

Providing features like:

If using ASP.NET Core then check 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
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
9
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+
8
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
8
NLog.Web.AspNetCore
Extend NLog with targets and layout renderers for websites and webapplications on the ASP.NET Core platform.
7
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
7
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
7
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
6
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
6
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
6
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
6
NLog.Web.AspNetCore
Extend NLog with targets and layout renderers for websites and webapplications on the ASP.NET Core platform.
6
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+
6

ChangeLog:

  • [#822] NLogLogger - Optimize for default EventId capture (@snakefoot)
  • [#824] Introduced WriteToJsonConsole for fluent API to match AddJsonConsole (@snakefoot)
  • [#825] NLogLoggerProvider - Implement IAsyncDisposable (@snakefoot)
  • [#826] MicrosoftConsoleJsonLayout - Forward MaxRecursionLimit to State-JsonLayout (@snakefoot)
  • [#827] MicrosoftConsoleLayoutRenderer - Apply Span for EventId (@snakefoot)
  • [#828] Replace NETCOREAPP3_1_OR_GREATER with new NET (@snakefoot)
  • [#830] Updated to NLog v6.1 (@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

Version Downloads Last updated
6.1.1 9 01/31/2026
6.1.0 11 12/12/2025
6.0.6 9 12/10/2025
6.0.5 9 12/10/2025
6.0.4 10 12/14/2025
6.0.3 7 12/10/2025
6.0.2 9 12/12/2025
6.0.1 9 12/12/2025
6.0.0 7 12/12/2025
6.0.0-rc4 7 12/28/2025
6.0.0-rc3 10 12/18/2025
6.0.0-rc2 2 02/04/2026
5.5.0 11 12/12/2025
5.4.0 10 12/10/2025
5.3.15 8 12/11/2025
5.3.14 10 12/12/2025
5.3.13 8 12/10/2025
5.3.12 10 12/12/2025
5.3.11 10 12/10/2025
5.3.10 8 12/12/2025
5.3.9 9 12/15/2025
5.3.8 10 12/12/2025
5.3.7 11 12/12/2025
5.3.5 8 12/11/2025
5.3.4 9 12/11/2025
5.3.3 9 12/11/2025
5.3.2 8 12/10/2025
5.3.1 6 12/16/2025
5.3.0 8 12/10/2025
5.2.5 8 12/16/2025
5.2.3 9 12/12/2025
5.2.2 10 12/10/2025
5.2.1 8 12/10/2025
5.2.0 8 12/10/2025
5.1.0 9 12/12/2025
5.0.4 9 12/12/2025
5.0.3 11 12/12/2025
5.0.2 11 12/12/2025
5.0.1 9 12/12/2025
5.0.0 14 12/12/2025
1.7.5 10 12/12/2025
1.7.4 11 12/12/2025
1.7.3 10 12/12/2025
1.7.2 11 12/12/2025
1.7.1 11 12/12/2025
1.7.0 10 12/11/2025
1.6.5 9 12/10/2025
1.6.4 9 12/10/2025
1.6.3 10 12/10/2025
1.6.2 7 12/10/2025
1.6.1 8 12/12/2025
1.6.0 10 12/10/2025
1.5.4 12 12/11/2025
1.5.3 9 12/12/2025
1.5.2 10 12/11/2025
1.5.1 11 12/11/2025
1.5.0 9 12/11/2025
1.4.0 9 12/12/2025
1.3.0 11 12/10/2025
1.2.1 7 12/16/2025
1.2.0 10 12/12/2025
1.1.0 10 12/10/2025
1.0.2 9 12/12/2025
1.0.1 7 12/12/2025
1.0.0 9 12/12/2025
1.0.0-rtm-rc7 3 01/29/2026