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
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
23
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+
21
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
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+
20
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
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 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
Extend NLog with targets and layout renderers for websites and webapplications on the ASP.NET Core platform.
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
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
18
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
18
NLog.Web.AspNetCore
Extend NLog with targets and layout renderers for websites and webapplications on the ASP.NET Core platform.
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 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+
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 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
15
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
15

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 1 2/4/2026
6.1.0 5 11/14/2025
6.0.6 3 11/15/2025
6.0.5 5 10/17/2025
6.0.4 6 9/14/2025
6.0.3 6 8/15/2025
6.0.2 6 7/26/2025
6.0.1 10 7/4/2025
6.0.0 10 6/23/2025
6.0.0-rc4 10 6/21/2025
6.0.0-rc3 3 6/14/2025
6.0.0-rc2 3 6/7/2025
5.5.0 2 6/18/2025
5.4.0 3 6/18/2025
5.3.15 11 6/22/2025
5.3.14 10 6/22/2025
5.3.13 2 6/6/2025
5.3.12 4 6/9/2025
5.3.11 12 6/22/2025
5.3.10 10 6/22/2025
5.3.9 3 6/18/2025
5.3.8 4 6/18/2025
5.3.7 3 6/14/2025
5.3.5 2 6/18/2025
5.3.4 3 6/18/2025
5.3.3 4 6/18/2025
5.3.2 3 6/18/2025
5.3.1 3 6/18/2025
5.3.0 1 6/18/2025
5.2.5 4 6/18/2025
5.2.3 19 6/18/2025
5.2.2 12 6/18/2025
5.2.1 12 6/18/2025
5.2.0 12 6/18/2025
5.1.0 17 6/18/2025
5.0.4 10 6/18/2025
5.0.3 18 6/18/2025
5.0.2 11 6/18/2025
5.0.1 12 6/18/2025
5.0.0 18 6/18/2025
1.7.5 18 6/18/2025
1.7.4 17 6/18/2025
1.7.3 19 6/12/2025
1.7.2 19 6/16/2025
1.7.1 15 6/18/2025
1.7.0 10 6/18/2025
1.6.5 10 6/18/2025
1.6.4 14 6/18/2025
1.6.3 17 6/18/2025
1.6.2 11 6/7/2025
1.6.1 20 6/18/2025
1.6.0 9 6/18/2025
1.5.4 10 6/18/2025
1.5.3 14 6/18/2025
1.5.2 11 6/18/2025
1.5.1 18 6/18/2025
1.5.0 20 6/18/2025
1.4.0 18 6/18/2025
1.3.0 11 6/18/2025
1.2.1 15 6/16/2025
1.2.0 11 6/18/2025
1.1.0 10 6/18/2025
1.0.2 12 6/18/2025
1.0.1 16 6/18/2025
1.0.0 10 6/18/2025