NLog.Web
NLog integration for ASP.NET & ASP.NET Core
Install / Use
/learn @NLog/NLog.WebREADME

NLog.Web (ASP.NET & ASP.NET Core)
| Nuget-package | Description | Supported Platforms |
|:----------------|:-------------|:--------------------|
| | ASP.NET applications for new .NET Core platforms | .NET 6, 7, 8, 9 and 10 |
|
| Classic ASP.NET MVC applications for .NET Framework | .NET Framework 3.5 - 4.8 |
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
- Getting started for ASP.NET Core 6
- Getting started for ASP.NET Core 5
- Getting started for ASP.NET Core 3.1
- Supported layout renderers for ASP.NET Core
- Getting started for .NET Core Console application
- How to use structured logging
- Blog posts for how to get started with ASP.NET Core and NLog
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:
<!-- 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
Related Skills
node-connect
332.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
81.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
332.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
81.7kCommit, push, and open a PR
