NLog.Extensions.Logging 5.3.14

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 consider using NLog.Web.AspNetCore.

Supported platforms:

  • .NET 5, 6, 7 and 8
  • .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
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
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
8
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 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 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
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 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
8
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
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.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
8
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
7
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
8
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
9

ChangeLog:

  • UseNLog should fallback after checking ContentRoot for NLog.config (#765) (@snakefoot)
  • NLogLoggingConfiguration - Fix memory-leak when using AutoReload (#761) (@snakefoot)
  • Updated to NLog v5.3.4 (#761) (@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

Version Downloads Last updated
6.1.0 3 24.11.2025
6.0.6 3 22.11.2025
6.0.5 4 25.10.2025
6.0.4 8 16.09.2025
6.0.3 8 20.08.2025
6.0.2 7 21.08.2025
6.0.1 6 21.08.2025
6.0.0 6 21.08.2025
5.5.0 7 21.08.2025
5.4.0 10 21.08.2025
5.3.15 6 21.08.2025
5.3.14 7 21.08.2025
5.3.13 5 21.08.2025
5.3.12 8 21.08.2025
5.3.11 5 21.08.2025
5.3.10 8 21.08.2025
5.3.9 5 21.08.2025
5.3.8 6 21.08.2025
5.3.7 7 21.08.2025
5.3.5 8 21.08.2025
5.3.4 5 21.08.2025
5.3.3 7 21.08.2025
5.3.2 6 21.08.2025
5.3.1 7 21.08.2025
5.3.0 7 21.08.2025
5.2.5 8 21.08.2025
5.2.3 7 21.08.2025
5.2.2 7 21.08.2025
5.2.1 6 21.08.2025
5.2.0 6 21.08.2025
5.1.0 7 21.08.2025
5.0.4 9 21.08.2025
5.0.3 6 21.08.2025
5.0.2 5 21.08.2025
5.0.1 7 21.08.2025
5.0.0 6 21.08.2025
1.7.5 8 21.08.2025
1.7.4 5 21.08.2025
1.7.3 5 21.08.2025
1.7.2 5 21.08.2025
1.7.1 9 21.08.2025
1.7.0 8 21.08.2025
1.6.5 6 21.08.2025
1.6.4 7 21.08.2025
1.6.3 7 21.08.2025
1.6.2 6 21.08.2025
1.6.1 6 21.08.2025
1.6.0 8 21.08.2025
1.5.4 7 21.08.2025
1.5.3 7 21.08.2025
1.5.2 6 21.08.2025
1.5.1 7 21.08.2025
1.5.0 9 21.08.2025
1.4.0 6 21.08.2025
1.3.0 8 21.08.2025
1.2.1 6 21.08.2025
1.2.0 8 21.08.2025
1.1.0 6 21.08.2025
1.0.2 9 21.08.2025
1.0.1 7 21.08.2025
1.0.0 7 21.08.2025