NLog.Web.AspNetCore 5.3.15

Prefix Reserved
dotnet add package NLog.Web.AspNetCore --version 5.3.15                
NuGet\Install-Package NLog.Web.AspNetCore -Version 5.3.15                
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.3.15" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NLog.Web.AspNetCore --version 5.3.15                
#r "nuget: NLog.Web.AspNetCore, 5.3.15"                
#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.3.15

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

NLog.Web.AspNetCore

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:

  • ASP.NET Core 5, 6, 7 and 8
  • ASP.NET Core 3.1
  • ASP.NET Core 2, .NET Standard 2.0 and .NET 4.6.1+

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

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

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

NLog.LogManager.Setup().LoadConfigurationFromAppSettings();

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.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (429)

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

Package Downloads
Coder.Extension

Coder扩展程序,包含:AutoMapper,Log,CsRedis,Swagger(Knife4j),Cors,Autofac,Hangfire,TimedJob,CAP,SqlSugar,Polly(超时,重试,熔断,降级)等扩展服务和中间件。

Ccf.Ck.Libs.Logging

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

OrchardCore.Logging.NLog

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

Solhigson.Framework

Utility Library

Flynk.Net.Services

Package Description

GitHub repositories (66)

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

Repository Stars
BeyondDimension/SteamTools
🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
Jackett/Jackett
API Support for your favorite torrent trackers
JustArchiNET/ArchiSteamFarm
C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
OrchardCMS/OrchardCore
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/NLog
NLog - Advanced and Structured Logging for Various .NET Platforms
Version Downloads Last updated
5.3.15 370,594 11/21/2024
5.3.14 1,287,812 9/23/2024
5.3.13 220,928 9/12/2024
5.3.12 873,171 8/12/2024
5.3.11 2,620,328 5/7/2024
5.3.10 170,252 4/30/2024
5.3.9 71,374 4/27/2024
5.3.8 4,154,417 12/29/2023
5.3.7 603,142 12/6/2023
5.3.5 2,049,117 10/15/2023
5.3.4 1,185,357 9/6/2023
5.3.3 917,512 8/6/2023
5.3.2 1,577,929 7/4/2023
5.3.1 64,961 7/1/2023
5.3.0 1,566,207 5/30/2023
5.2.3 2,702,532 3/28/2023
5.2.2 1,864,343 2/17/2023
5.2.1 2,422,054 12/30/2022
5.2.0 1,490,023 11/27/2022
5.1.5 2,249,215 10/25/2022
5.1.4 2,393,088 9/1/2022
5.1.2 92,695 9/1/2022
5.1.1 525,576 8/17/2022
5.1.0 1,336,891 7/18/2022
5.0.0 3,544,130 5/17/2022
4.15.0 1,135,366 6/4/2022
4.14.0 12,464,593 8/28/2021
4.13.0 2,180,220 7/14/2021
4.13.0-readme-preview 41,164 5/3/2021
4.12.0 5,255,265 3/29/2021
4.11.0 1,566,764 2/27/2021
4.10.0 2,552,916 12/30/2020
4.9.3 6,587,784 8/1/2020
4.9.2 5,732,433 4/20/2020
4.9.1 1,215,576 3/30/2020
4.9.0 8,195,248 10/11/2019
4.8.6 427,879 9/30/2019
4.8.5 1,163,244 9/7/2019
4.8.4 1,769,771 7/2/2019
4.8.3 707,009 6/5/2019
4.8.2 1,222,616 5/6/2019
4.8.1 1,617,108 3/18/2019
4.8.0 2,099,050 1/25/2019
4.7.1 583,649 1/6/2019
4.7.0 2,296,858 9/22/2018
4.6.0 904,155 8/5/2018
4.5.4 2,505,084 5/10/2018
4.5.3 137,816 4/29/2018
4.5.2 327,006 4/12/2018
4.5.1 203,638 4/2/2018
4.5.0 96,830 3/27/2018
4.4.1 1,078,057 6/16/2017
4.4.0 91,495 5/14/2017
4.3.1 229,729 2/10/2017
4.3.0 39,861 1/18/2017
4.2.4 19,633 7/3/2016
4.2.3 106,461 5/24/2016

ChangeLog:

 - UseNLog Allow fallback to only EnvironmentName for NLog config (#1066) (@snakefoot)
 - Updated dependency NLog.Extensions.Logging v5.3.15 (#1067) (@snakefoot)

List of major changes in NLog 5.0: https://nlog-project.org/2022/05/16/nlog-5-0-finally-ready.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