NLog.Web.AspNetCore 5.2.3

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
.NET 5.0 .NET Core 3.1 .NET Standard 2.0 .NET Framework 4.6.1
dotnet add package NLog.Web.AspNetCore --version 5.2.3
NuGet\Install-Package NLog.Web.AspNetCore -Version 5.2.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NLog.Web.AspNetCore" Version="5.2.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NLog.Web.AspNetCore --version 5.2.3
#r "nuget: NLog.Web.AspNetCore, 5.2.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NLog.Web.AspNetCore as a Cake Addin
#addin nuget:?package=NLog.Web.AspNetCore&version=5.2.3

// Install NLog.Web.AspNetCore as a Cake Tool
#tool nuget:?package=NLog.Web.AspNetCore&version=5.2.3


alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Integrates NLog as Logging provider for the ASP.NET Core platform, by just calling UseNLog() with the application host-builder.

Providing features like:

  • Enrich logging output with additional details from active HttpContext using NLog LayoutRenderers, by just updating the NLog configuration.
  • Supports middleware injection for HTTP Request Logging and HTTP Response Logging.
  • Routing logging output to multiple destinations via the available NLog Targets
  • Rendering logging output into standard formats like JSON, CVS, W3C ELF and XML using NLog Layouts.
  • Contributions are always welcome, by creating a pull request.

Supported platforms:

  • For ASP.NET Core 6, .NET 6
  • For ASP.NET Core 5, .NET 5
  • For ASP.NET Core 3, .NET Core 3.1
  • For ASP.NET Core 2, .NET Standard 2.0 and .NET 4.6.1+

Registration of NLog.Web.AspNetCore in the NLog.config file:

    <add assembly="NLog.Web.AspNetCore"/>

Registration of NLog.Web.AspNetCore can also be performed with fluent setup:


Useful Links

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (336)

Showing the top 5 NuGet packages that depend on NLog.Web.AspNetCore:

Package Downloads

Extends the default nlog library with static methods for logging and default visualization of the logged entries




Essencial tools to agile development.


This packages provides a built-in website builder and editor and direct integration with the Thinkka Sales and Management package "S.A.M."

OrchardCore.Logging.NLog The ID prefix of this package has been reserved for one of the owners of this package by

Orchard Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Provides NLog logging for application.

GitHub repositories (56)

Showing the top 5 popular GitHub repositories that depend on NLog.Web.AspNetCore:

Repository Stars
🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
API Support for your favorite torrent trackers
Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
NLog - Advanced and Structured Logging for Various .NET Platforms
Version Downloads Last updated
5.2.3 448,081 3/28/2023
5.2.2 501,826 2/17/2023
5.2.1 907,557 12/30/2022
5.2.0 559,969 11/27/2022
5.1.5 814,005 10/25/2022
5.1.4 1,210,665 9/1/2022
5.1.2 43,291 9/1/2022
5.1.1 280,404 8/17/2022
5.1.0 728,579 7/18/2022
5.0.0 1,559,713 5/17/2022
4.15.0 372,222 6/4/2022
4.14.0 7,500,073 8/28/2021
4.13.0 1,521,189 7/14/2021
4.13.0-readme-preview 33,058 5/3/2021
4.12.0 4,173,237 3/29/2021
4.11.0 1,224,611 2/27/2021
4.10.0 2,070,045 12/30/2020
4.9.3 5,159,076 8/1/2020
4.9.2 4,696,663 4/20/2020
4.9.1 1,011,371 3/30/2020
4.9.0 7,098,660 10/11/2019
4.8.6 346,016 9/30/2019
4.8.5 945,064 9/7/2019
4.8.4 1,598,570 7/2/2019
4.8.3 646,123 6/5/2019
4.8.2 979,294 5/6/2019
4.8.1 1,410,252 3/18/2019
4.8.0 1,810,484 1/25/2019
4.7.1 455,839 1/6/2019
4.7.0 2,091,137 9/22/2018
4.6.0 829,989 8/5/2018
4.5.4 1,982,390 5/10/2018
4.5.3 122,859 4/29/2018
4.5.2 291,921 4/12/2018
4.5.1 190,694 4/2/2018
4.5.0 78,966 3/27/2018
4.4.1 1,004,859 6/16/2017
4.4.0 80,534 5/14/2017
4.3.1 196,690 2/10/2017
4.3.0 38,215 1/18/2017
4.2.4 17,950 7/3/2016
4.2.3 43,388 5/24/2016


- Updated dependency NLog.Extensions.Logging v5.2.3 (#929) (@snakefoot)

List of major changes in NLog 5.0:

Full changelog:

List of available Layout Renderers: