NLog.Web.AspNetCore 6.2.1

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:

  • [#1190] Updated dependency NLog v6.2.1 (@snakefoot)
  • [#1187] NLogRequestLoggingOptions - Cancelled client request only warning when slow (@snakefoot)
  • [#1179] XML Docs for all public properties with setters to include Default value (@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.1 28 09/18/2026
6.2.0 13 08/18/2026
6.1.4 17 07/09/2026
6.1.3 27 05/06/2026
6.1.2 43 03/03/2026
6.1.1 42 02/03/2026
6.1.0 41 12/10/2025
6.0.6 40 12/10/2025
6.0.5 39 12/10/2025
6.0.4 39 12/11/2025
6.0.3 36 12/14/2025
6.0.2 36 12/10/2025
6.0.1 29 12/09/2025
6.0.0 44 12/10/2025
6.0.0-rc4 34 12/17/2025
6.0.0-rc3 35 01/28/2026
6.0.0-rc2 35 01/11/2026
5.5.0 35 12/10/2025
5.4.0 44 12/10/2025
5.3.15 33 12/09/2025
5.3.14 44 12/10/2025
5.3.13 35 12/12/2025
5.3.12 36 12/18/2025
5.3.11 42 12/12/2025
5.3.10 35 12/12/2025
5.3.9 28 12/10/2025
5.3.8 36 12/10/2025
5.3.7 25 12/12/2025
5.3.5 28 12/10/2025
5.3.4 39 12/10/2025
5.3.3 40 12/10/2025
5.3.2 34 12/10/2025
5.3.1 32 12/12/2025
5.3.0 49 12/18/2025
5.2.3 39 12/10/2025
5.2.2 35 12/09/2025
5.2.1 40 12/10/2025
5.2.0 35 12/12/2025
5.1.5 39 12/11/2025
5.1.4 37 12/18/2025
5.1.2 41 12/10/2025
5.1.1 37 12/09/2025
5.1.0 37 12/10/2025
5.0.0 32 12/18/2025
4.15.0 37 12/10/2025
4.14.0 37 12/09/2025
4.13.0 33 12/13/2025
4.13.0-readme-preview 27 12/10/2025
4.12.0 34 12/18/2025
4.11.0 35 12/18/2025
4.10.0 32 12/10/2025
4.9.3 32 12/11/2025
4.9.2 31 12/12/2025
4.9.1 31 12/18/2025
4.9.0 28 12/11/2025
4.8.6 34 12/18/2025
4.8.5 35 12/10/2025
4.8.4 36 12/10/2025
4.8.3 38 12/10/2025
4.8.2 31 12/10/2025
4.8.1 28 12/09/2025
4.8.0 30 12/18/2025
4.7.1 29 12/10/2025
4.7.0 35 12/11/2025
4.6.0 33 12/10/2025
4.5.4 36 12/11/2025
4.5.3 34 12/14/2025
4.5.2 33 12/10/2025
4.5.1 37 12/10/2025
4.5.0 37 12/10/2025
4.5.0-rc3 24 02/06/2026
4.4.1 35 12/12/2025
4.4.0 33 12/10/2025
4.3.1 39 12/12/2025
4.3.0 39 12/10/2025
4.2.4 47 12/14/2025
4.2.3 25 12/15/2025