NLog.Web.AspNetCore
4.14.0
dotnet add package NLog.Web.AspNetCore --version 4.14.0
NuGet\Install-Package NLog.Web.AspNetCore -Version 4.14.0
<PackageReference Include="NLog.Web.AspNetCore" Version="4.14.0" />
paket add NLog.Web.AspNetCore --version 4.14.0
#r "nuget: NLog.Web.AspNetCore, 4.14.0"
// Install NLog.Web.AspNetCore as a Cake Addin #addin nuget:?package=NLog.Web.AspNetCore&version=4.14.0 // Install NLog.Web.AspNetCore as a Cake Tool #tool nuget:?package=NLog.Web.AspNetCore&version=4.14.0
NLog.Web.AspNetCore
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:
<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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.5 is compatible. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net451 is compatible. net452 was computed. net46 was computed. 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 | tizen30 was computed. 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. |
-
.NETCoreApp 3.0
- NLog.Extensions.Logging (>= 1.7.4)
-
.NETFramework 4.5.1
- Microsoft.AspNetCore.Hosting.Abstractions (>= 1.1.2)
- Microsoft.AspNetCore.Http (>= 1.1.2)
- Microsoft.AspNetCore.Routing.Abstractions (>= 1.1.2)
- NLog.Extensions.Logging (>= 1.7.4)
-
.NETFramework 4.6.1
- Microsoft.AspNetCore.Hosting.Abstractions (>= 2.1.0)
- Microsoft.AspNetCore.Http (>= 2.1.0)
- Microsoft.AspNetCore.Routing.Abstractions (>= 2.1.0)
- NLog.Extensions.Logging (>= 1.7.4)
-
.NETStandard 1.5
- Microsoft.AspNetCore.Hosting.Abstractions (>= 1.1.2)
- Microsoft.AspNetCore.Http (>= 1.1.2)
- Microsoft.AspNetCore.Routing.Abstractions (>= 1.1.2)
- NETStandard.Library (>= 1.6.1)
- NLog.Extensions.Logging (>= 1.7.4)
-
.NETStandard 2.0
- Microsoft.AspNetCore.Hosting.Abstractions (>= 2.1.0)
- Microsoft.AspNetCore.Http (>= 2.1.0)
- Microsoft.AspNetCore.Routing.Abstractions (>= 2.1.0)
- NLog.Extensions.Logging (>= 1.7.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on NLog.Web.AspNetCore:
Package | Downloads |
---|---|
OcarambaLite
Framework to automate tests using Selenium WebDriver (lighten version without selenium drivers) |
GitHub repositories (65)
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 |
---|---|---|
4.14.0 | 66 | 9/19/2022 |
4.11.0 | 0 | 3/8/2021 |
4.10.0.1892-PR639 | 0 | 3/8/2021 |
4.10.0.1888-PR639 | 0 | 3/8/2021 |
4.10.0 | 32,414 | 3/8/2021 |
4.9.3 | 0 | 3/8/2021 |
4.9.2 | 0 | 3/8/2021 |
4.9.1 | 0 | 3/8/2021 |
4.9.0 | 5 | 3/8/2021 |
4.8.6 | 0 | 3/8/2021 |
4.8.5 | 0 | 3/8/2021 |
4.8.4 | 0 | 3/8/2021 |
4.8.3 | 0 | 3/8/2021 |
4.8.2 | 2 | 3/8/2021 |
4.8.2-rc1 | 0 | 3/8/2021 |
4.8.1 | 2 | 3/8/2021 |
4.8.0 | 0 | 3/8/2021 |
4.7.1 | 0 | 3/8/2021 |
4.7.0 | 2 | 3/8/2021 |
4.6.0 | 0 | 3/8/2021 |
4.5.4 | 9,462 | 3/8/2021 |
4.5.3 | 0 | 3/8/2021 |
4.5.2 | 0 | 3/8/2021 |
4.5.1 | 0 | 3/8/2021 |
4.5.0 | 0 | 3/8/2021 |
4.5.0-rc3 | 0 | 3/8/2021 |
4.5.0-rc2 | 0 | 3/8/2021 |
4.5.0-rc1 | 0 | 3/8/2021 |
4.5.0-beta04 | 0 | 3/8/2021 |
4.5.0-beta03 | 0 | 3/8/2021 |
4.5.0-beta02 | 0 | 3/8/2021 |
4.5.0-beta01 | 0 | 3/8/2021 |
4.4.1 | 40 | 3/8/2021 |
4.4.0 | 6 | 3/8/2021 |
4.3.1 | 12 | 3/8/2021 |
4.3.0 | 4 | 3/8/2021 |
4.2.4 | 0 | 3/8/2021 |
4.2.3 | 0 | 3/8/2021 |
- Update dependencies
See also https://github.com/NLog/NLog.Web/releases