GitPedia

NLog.Web

NLog integration for ASP.NET & ASP.NET Core

From NLog·Updated June 8, 2026·View on GitHub·

Extensions for [NLog](https://github.com/NLog/NLog/) that includes [layout-renderes](https://nlog-project.org/config/?tab=layout-renderers&search=package:nlog.web.aspnetcore) for capturing contextual details from the HttpContext for both ASP.NET Core and IIS. The project is written primarily in C#, distributed under the BSD 3-Clause "New" or "Revised" License license, first published in 2015. Key topics include: asp-net, asp-net-core, asp-net-core-mvc, asp-net-mvc, aspnet.

Latest release: v6.1.3Version 6.1.3

NLog

NLog.Web (ASP.NET & ASP.NET Core)

Nuget-packageDescriptionSupported Platforms
NuGet ReleaseASP.NET applications for new .NET Core platforms.NET 6, 7, 8, 9 and 10
NuGet ReleaseClassic ASP.NET MVC applications for .NET Framework.NET Framework 3.5 - 4.8

Build status





Extensions for NLog that includes layout-renderes for capturing contextual details from the HttpContext for both ASP.NET Core and IIS.

Releases

For updates and releases, check CHANGELOG.MD or Releases

ASP.NET Core

The NLog.Web.AspNetCore-package works with the new ASP.NET Core platforms .NET 6, 7, 8, 9 and 10

ASP.NET (non-core)

The NLog.Web-package works with classic ASP.NET MVC with .NET Framework 3.5 - 4.8

NLog 5.0 requires that NLog.config must include NLog.Web in extensions:

xml
<!-- enable ASP.NET layout renderers --> <extensions> <add assembly="NLog.Web"/> </extensions>

Contributions

Contributions are highly appreciated! Please make sure if works for ASP.NET and ASP.NET Core if possible and make sure it is covered by unit tests.

License

BSD

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from NLog/NLog.Web via the GitHub API.Last fetched: 6/16/2026