NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext.
Total Downloads
173.6M
173,581,073
Published
Sep 11, 2025
Latest stable version
Install
.NET CLI
dotnet add package NLog.Web.AspNetCore --version 6.0.4
Package Manager Console
Install-Package NLog.Web.AspNetCore -Version 6.0.4
PackageReference
<PackageReference Include="NLog.Web.AspNetCore" Version="6.0.4" />
Frameworks
Dependencies
Microsoft.AspNetCore.Hosting.Abstractions
[2.3.0, )
.NETFramework4.6.2
Microsoft.AspNetCore.Http
[2.3.0, )
.NETFramework4.6.2
Microsoft.AspNetCore.Routing.Abstractions
[2.3.0, )
.NETFramework4.6.2
NLog.Extensions.Logging
[6.0.4, )
.NETFramework4.6.2
NLog.Extensions.Logging
[6.0.4, )
net6.0
NLog.Extensions.Logging
[6.0.4, )
net8.0
Microsoft.AspNetCore.Hosting.Abstractions
[2.3.0, )
.NETStandard2.0
Microsoft.AspNetCore.Http
[2.3.0, )
.NETStandard2.0
Microsoft.AspNetCore.Routing.Abstractions
[2.3.0, )
.NETStandard2.0
NLog.Extensions.Logging
[6.0.4, )
.NETStandard2.0
Adoption guide
Teams already using NLog or requiring its configuration-oriented routing model.
Why it appears in the guide: NLog integration for ASP.NET Core with flexible target and rule configuration. Trade-off: Avoid adding a second logging pipeline when the existing provider already meets the requirement.
Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.