NLog.Web.AspNetCore 6.1.3

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:

Showing the top 20 packages that depend on NLog.Web.AspNetCore.

Packages Downloads
OrchardCore.Logging.NLog
Orchard Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Provides NLog logging for application.
13
OrchardCore.Logging.NLog
Orchard Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Provides NLog logging for application.
12
OrchardCore.Logging.NLog
Orchard Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Provides NLog logging for application.
11

ChangeLog: - [#1137] Updated dependency NLog v6.1.3 (@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.3 4 06.05.2026
6.1.2 5 01.03.2026
6.1.1 5 11.02.2026
6.1.0 6 10.12.2025
6.0.6 6 10.12.2025
6.0.5 7 10.11.2025
6.0.4 7 24.09.2025
6.0.3 9 14.08.2025
6.0.2 9 14.08.2025
6.0.1 10 10.07.2025
6.0.0 10 10.07.2025
6.0.0-rc4 7 10.07.2025
6.0.0-rc3 8 10.07.2025
6.0.0-rc2 8 10.07.2025
5.5.0 10 03.06.2025
5.4.0 12 20.02.2025
5.3.15 10 24.12.2024
5.3.14 9 20.02.2025
5.3.13 9 20.02.2025
5.3.12 9 20.02.2025
5.3.11 9 20.02.2025
5.3.10 9 20.02.2025
5.3.9 12 20.02.2025
5.3.8 9 20.02.2025
5.3.7 12 20.02.2025
5.3.5 12 20.02.2025
5.3.4 12 20.02.2025
5.3.3 12 20.02.2025
5.3.2 12 20.02.2025
5.3.1 12 20.02.2025
5.3.0 12 20.02.2025
5.2.3 12 20.02.2025
5.2.2 11 20.02.2025
5.2.1 12 20.02.2025
5.2.0 12 20.02.2025
5.1.5 11 20.02.2025
5.1.4 12 20.02.2025
5.1.2 12 20.02.2025
5.1.1 12 20.02.2025
5.1.0 12 20.02.2025
5.0.0 12 20.02.2025
4.15.0 10 20.02.2025
4.14.0 9 20.02.2025
4.13.0 9 20.02.2025
4.13.0-readme-preview 11 20.02.2025
4.12.0 9 20.02.2025
4.11.0 9 20.02.2025
4.10.0 9 20.02.2025
4.9.3 12 20.02.2025
4.9.2 12 20.02.2025
4.9.1 12 20.02.2025
4.9.0 9 20.02.2025
4.8.6 12 20.02.2025
4.8.5 12 20.02.2025
4.8.4 12 20.02.2025
4.8.3 12 20.02.2025
4.8.2 13 20.02.2025
4.8.1 12 20.02.2025
4.8.0 12 20.02.2025
4.7.1 12 20.02.2025
4.7.0 12 20.02.2025
4.6.0 13 20.02.2025
4.5.4 11 20.02.2025
4.5.3 12 20.02.2025
4.5.2 12 20.02.2025
4.5.1 12 20.02.2025
4.5.0 12 20.02.2025
4.4.1 10 20.02.2025
4.4.0 11 20.02.2025
4.3.1 12 20.02.2025
4.3.0 13 20.02.2025
4.2.4 11 20.02.2025
4.2.3 12 20.02.2025