NLog.Web.AspNetCore 6.1.4

NLog.Web.AspNetCore

Integrates NLog as Logging provider for the ASP.NET Core platform, by just calling UseNLog() with the application host-builder.

Providing features like:

Supported platforms:

  • ASP.NET Core 6, 7, 8, 9 and 10
  • ASP.NET Core 2, .NET Standard 2.0 and .NET 4.6.2+

Register NLog as logging provider:

builder.Logging.ClearProviders();
builder.Host.UseNLog();

If logging is needed before the host building, then one can use fluent setup:

var logger = NLog.LogManager.Setup().LoadConfigurationFromAppSettings().GetCurrentClassLogger();

Alternative include NLog.Web.AspNetCore extension in the NLog.config file:

<extensions>
    <add assembly="NLog.Web.AspNetCore"/>
</extensions>

Useful Links:

No packages depend on NLog.Web.AspNetCore.

ChangeLog:

  • [#1151] Updated dependency NLog v6.1.4 (@snakefoot)
  • [#1145] AppVeyor - Visual Studio 2026 (@snakefoot)

List of major changes in NLog v6.0: https://nlog-project.org/2025/04/29/nlog-6-0-major-changes.html

Full changelog: https://github.com/NLog/NLog.Web/releases

List of available Layout Renderers: https://nlog-project.org/config/?tab=layout-renderers&search=package:nlog.web.aspnetcore

Version Downloads Last updated
6.1.4 1 20.07.2026
6.1.3 7 11.05.2026
6.1.2 7 01.03.2026
6.1.1 7 09.02.2026
6.1.0 9 17.11.2025
6.0.6 13 18.11.2025
6.0.5 14 25.10.2025
6.0.4 12 16.09.2025
6.0.3 17 20.08.2025
6.0.2 14 21.08.2025
6.0.1 14 21.08.2025
6.0.0 12 21.08.2025
6.0.0-rc4 15 21.08.2025
6.0.0-rc3 14 21.08.2025
6.0.0-rc2 12 21.08.2025
5.5.0 14 21.08.2025
5.4.0 16 21.08.2025
5.3.15 15 21.08.2025
5.3.14 14 21.08.2025
5.3.13 14 21.08.2025
5.3.12 12 21.08.2025
5.3.11 17 21.08.2025
5.3.10 16 21.08.2025
5.3.9 15 21.08.2025
5.3.8 14 21.08.2025
5.3.7 16 21.08.2025
5.3.5 13 21.08.2025
5.3.4 15 21.08.2025
5.3.3 13 21.08.2025
5.3.2 15 21.08.2025
5.3.1 16 21.08.2025
5.3.0 12 21.08.2025
5.2.3 13 21.08.2025
5.2.2 13 21.08.2025
5.2.1 13 21.08.2025
5.2.0 12 21.08.2025
5.1.5 14 21.08.2025
5.1.4 14 21.08.2025
5.1.2 14 21.08.2025
5.1.1 15 21.08.2025
5.1.0 16 21.08.2025
5.0.0 15 21.08.2025
4.15.0 15 21.08.2025
4.14.0 15 21.08.2025
4.13.0 16 21.08.2025
4.13.0-readme-preview 15 21.08.2025
4.12.0 15 21.08.2025
4.11.0 14 21.08.2025
4.10.0 14 21.08.2025
4.9.3 15 21.08.2025
4.9.2 15 21.08.2025
4.9.1 15 21.08.2025
4.9.0 17 21.08.2025
4.8.6 14 21.08.2025
4.8.5 14 21.08.2025
4.8.4 13 21.08.2025
4.8.3 14 21.08.2025
4.8.2 16 21.08.2025
4.8.1 16 21.08.2025
4.8.0 17 21.08.2025
4.7.1 16 21.08.2025
4.7.0 14 21.08.2025
4.6.0 16 21.08.2025
4.5.4 12 21.08.2025
4.5.3 16 21.08.2025
4.5.2 15 21.08.2025
4.5.1 16 21.08.2025
4.5.0 13 21.08.2025
4.4.1 14 21.08.2025
4.4.0 15 21.08.2025
4.3.1 16 21.08.2025
4.3.0 15 21.08.2025
4.2.4 15 21.08.2025
4.2.3 16 21.08.2025