NLog.Web.AspNetCore 6.2.0

NLog.Web.AspNetCore

NLog.Web.AspNetCore integrates NLog as a logging provider for Microsoft.Extensions.Logging by calling UseNLog() on the application HostBuilder.

Application code can continue using ILogger<T>, while NLog provides powerful logging capabilities including:

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();

Useful Links:

No packages depend on NLog.Web.AspNetCore.

ChangeLog: - [#1178] Updated dependency NLog v6.2 (@snakefoot) - [#1162] Updated tutorials and examples for using NLog with ASP.NET Core (@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.2.0 1 8/27/2026
6.1.4 0 7/8/2026
6.1.3 0 5/5/2026
6.1.2 4 3/6/2026
6.1.1 5 2/6/2026
6.1.0 9 11/15/2025
6.0.6 6 11/12/2025
6.0.5 8 10/13/2025
6.0.4 9 9/15/2025
6.0.3 9 8/18/2025
6.0.2 10 7/28/2025
6.0.1 12 6/29/2025
6.0.0 12 6/29/2025
6.0.0-rc4 3 6/17/2025
6.0.0-rc3 4 6/10/2025
6.0.0-rc2 5 6/8/2025
5.5.0 3 6/18/2025
5.4.0 5 6/17/2025
5.3.15 5 6/18/2025
5.3.14 5 6/18/2025
5.3.13 5 6/16/2025
5.3.12 4 6/17/2025
5.3.11 3 6/18/2025
5.3.10 3 6/17/2025
5.3.9 4 6/17/2025
5.3.8 5 6/18/2025
5.3.7 3 6/7/2025
5.3.5 4 6/18/2025
5.3.4 5 6/18/2025
5.3.3 6 6/18/2025
5.3.2 4 6/18/2025
5.3.1 4 6/18/2025
5.3.0 4 6/17/2025
5.2.3 3 6/18/2025
5.2.2 3 6/18/2025
5.2.1 4 6/18/2025
5.2.0 12 6/15/2025
5.1.5 23 6/18/2025
5.1.4 22 6/18/2025
5.1.2 13 6/17/2025
5.1.1 21 6/18/2025
5.1.0 23 6/17/2025
5.0.0 20 6/18/2025
4.15.0 20 6/18/2025
4.14.0 13 6/18/2025
4.13.0 11 6/25/2025
4.13.0-readme-preview 7 6/18/2025
4.12.0 13 6/18/2025
4.11.0 17 6/18/2025
4.10.0 15 6/18/2025
4.9.3 22 6/18/2025
4.9.2 14 6/9/2025
4.9.1 14 6/17/2025
4.9.0 14 6/18/2025
4.8.6 18 6/18/2025
4.8.5 25 6/17/2025
4.8.4 16 6/18/2025
4.8.3 21 6/12/2025
4.8.2 25 6/18/2025
4.8.1 21 6/18/2025
4.8.0 17 6/18/2025
4.7.1 20 6/18/2025
4.7.0 22 6/17/2025
4.6.0 19 6/17/2025
4.5.4 13 6/18/2025
4.5.3 14 6/18/2025
4.5.2 21 6/12/2025
4.5.1 17 6/18/2025
4.5.0 13 6/10/2025
4.4.1 12 6/8/2025
4.4.0 20 6/18/2025
4.3.1 23 6/18/2025
4.3.0 14 6/18/2025
4.2.4 20 6/18/2025
4.2.3 11 6/18/2025