NLog.Extensions.Logging
5.3.15
Prefix Reserved
dotnet add package NLog.Extensions.Logging --version 5.3.15
NuGet\Install-Package NLog.Extensions.Logging -Version 5.3.15
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.15" />
paket add NLog.Extensions.Logging --version 5.3.15
#r "nuget: NLog.Extensions.Logging, 5.3.15"
// Install NLog.Extensions.Logging as a Cake Addin #addin nuget:?package=NLog.Extensions.Logging&version=5.3.15 // Install NLog.Extensions.Logging as a Cake Tool #tool nuget:?package=NLog.Extensions.Logging&version=5.3.15
NLog.Extensions.Logging
Integrates NLog as Logging provider for Microsoft.Extensions.Logging, by just calling AddNLog()
on the Logging-builder.
Providing features like:
- Capture structured message properties from the Microsoft ILogger
- Capture scope context properties from the Microsoft ILogger
BeginScope
- Load NLog configuration from appsettings.json
- Routing logging output to multiple destinations via the available NLog Targets
- Enrich logging output with additional context details via the available NLog LayoutRenderers
- Rendering logging output into standard formats like JSON, CVS, W3C ELF and XML using NLog Layouts.
If using ASP.NET Core then consider using NLog.Web.AspNetCore.
Supported platforms:
- .NET 5, 6, 7 and 8
- .NET Core 1, 2 and 3
- .NET Standard 1.3+ and 2.0+
- .NET 4.6.1 - 4.8
Registration of NLog as logging provider:
builder.Logging.ClearProviders();
builder.Logging.AddNLog();
Useful Links:
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. 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 | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.3 is compatible. netstandard1.4 was computed. netstandard1.5 is compatible. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | 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. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.1
- Microsoft.Extensions.Configuration.Abstractions (>= 2.1.0)
- Microsoft.Extensions.Logging (>= 2.1.0)
- NLog (>= 5.3.4)
-
.NETStandard 1.3
- Microsoft.Extensions.Configuration.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 1.0.0)
- NETStandard.Library (>= 1.6.0)
- NLog (>= 5.3.4)
-
.NETStandard 1.5
- Microsoft.Extensions.Configuration.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 1.0.0)
- NETStandard.Library (>= 1.6.0)
- NLog (>= 5.3.4)
-
.NETStandard 2.0
- Microsoft.Extensions.Configuration.Abstractions (>= 2.1.0)
- Microsoft.Extensions.Logging (>= 2.1.0)
- NLog (>= 5.3.4)
-
.NETStandard 2.1
- Microsoft.Extensions.Configuration.Abstractions (>= 3.1.0)
- Microsoft.Extensions.Logging (>= 3.1.0)
- NLog (>= 5.3.4)
-
net6.0
- Microsoft.Extensions.Configuration.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Logging (>= 6.0.0)
- NLog (>= 5.3.4)
-
net8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- NLog (>= 5.3.4)
NuGet packages (308)
Showing the top 5 NuGet packages that depend on NLog.Extensions.Logging:
Package | Downloads |
---|---|
NLog.Web.AspNetCore
Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog LayoutRenderers to enrich logging output with details from HttpContext. |
|
TIKSN-Framework
This is a .NET Framework enhancement framework. Main features are Versioning, Finance, Currency, Foreign Exchange, Money, Pricing strategy, Telemetry, Composite Weighted Progress, Repository and Unity of Wok pattern implementation with Entity Framework Core, Network Connectivity Service and Triggering, Settings, Windows Registry configuration source, Azure Storage Repository, MongoDB Repository, NoDB Repository, Lingual and Regional Localization, Serialization, Rest Requester, Rest Repository, Dependency Injection, Composition Root Setup base classes. |
|
NLog.Extensions.Hosting
NLog extension for Microsoft.Extensions.Hosting for logging in .NET Standard libraries and .NET Core applications using IHostBuilder. For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore |
|
NLog.Web.AspNetCore.Targets.Gelf
Gelf4NLog is an NLog target implementation to push log messages to GrayLog2. |
|
NStratis
The C# Bitcoin Library based on NBitcoin |
GitHub repositories (74)
Showing the top 5 popular GitHub repositories that depend on NLog.Extensions.Logging:
Repository | Stars |
---|---|
microsoft/PowerToys
Windows system utilities to maximize productivity
|
|
BeyondDimension/SteamTools
🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
|
|
Sonarr/Sonarr
Smart PVR for newsgroup and bittorrent users.
|
|
Radarr/Radarr
Movie organizer/manager for usenet and torrent users.
|
|
quartznet/quartznet
Quartz Enterprise Scheduler .NET
|
Version | Downloads | Last updated |
---|---|---|
5.3.15 | 106,721 | 11/21/2024 |
5.3.14 | 603,427 | 9/23/2024 |
5.3.13 | 1,102,998 | 9/12/2024 |
5.3.12 | 1,017,715 | 8/12/2024 |
5.3.11 | 3,141,282 | 5/7/2024 |
5.3.10 | 228,296 | 4/30/2024 |
5.3.9 | 90,624 | 4/27/2024 |
5.3.8 | 5,734,230 | 12/29/2023 |
5.3.7 | 809,126 | 12/6/2023 |
5.3.5 | 2,513,673 | 10/15/2023 |
5.3.4 | 1,622,878 | 9/6/2023 |
5.3.3 | 1,162,441 | 8/5/2023 |
5.3.2 | 1,982,075 | 7/4/2023 |
5.3.1 | 103,138 | 7/1/2023 |
5.3.0 | 2,199,887 | 5/30/2023 |
5.2.5 | 267,258 | 5/25/2023 |
5.2.3 | 3,241,991 | 3/28/2023 |
5.2.2 | 2,632,251 | 2/17/2023 |
5.2.1 | 3,268,935 | 12/29/2022 |
5.2.0 | 1,854,895 | 11/27/2022 |
5.1.0 | 2,806,114 | 10/25/2022 |
5.0.4 | 3,324,603 | 9/1/2022 |
5.0.3 | 104,223 | 8/31/2022 |
5.0.2 | 871,915 | 8/12/2022 |
5.0.1 | 2,101,105 | 6/23/2022 |
5.0.0 | 3,912,599 | 5/17/2022 |
1.7.5 | 1,456,633 | 6/4/2022 |
1.7.4 | 17,062,090 | 8/25/2021 |
1.7.3 | 3,597,558 | 6/15/2021 |
1.7.2 | 8,356,336 | 3/26/2021 |
1.7.1 | 2,215,063 | 2/26/2021 |
1.7.0 | 3,532,001 | 12/29/2020 |
1.6.5 | 3,146,080 | 8/27/2020 |
1.6.4 | 8,362,665 | 5/20/2020 |
1.6.3 | 417,088 | 5/11/2020 |
1.6.2 | 7,567,934 | 3/16/2020 |
1.6.1 | 3,606,438 | 10/19/2019 |
1.6.0 | 7,415,329 | 10/7/2019 |
1.5.4 | 1,990,243 | 9/6/2019 |
1.5.3 | 214,112 | 8/28/2019 |
1.5.2 | 738,796 | 7/14/2019 |
1.5.1 | 2,870,567 | 6/5/2019 |
1.5.0 | 1,366,240 | 4/30/2019 |
1.4.0 | 4,945,923 | 1/16/2019 |
1.3.0 | 3,627,601 | 9/22/2018 |
1.2.1 | 1,171,559 | 8/5/2018 |
1.2.0 | 310,914 | 7/20/2018 |
1.1.0 | 625,944 | 5/25/2018 |
1.0.2 | 2,659,899 | 5/10/2018 |
1.0.1 | 798,894 | 4/7/2018 |
1.0.0 | 730,271 | 3/25/2018 |
ChangeLog:
- UseNLog allow fallback to only EnvironmentName for NLog config (#773) (@snakefoot)
- NLogMessageParameterList - Optimize the index operator (#771) (@snakefoot)
- NLogMessageParameterList - Simplify the index operator (#770) (@snakefoot)
- Recognize ITuple for better AOT support (#768) (@snakefoot)
Full changelog: https://github.com/NLog/NLog.Extensions.Logging/blob/master/CHANGELOG.MD
NLog v5.2 changes how to load extensions: https://nlog-project.org/2023/05/30/nlog-5-2-trim-warnings.html
List of major changes in NLog 5.0: https://nlog-project.org/2021/08/25/nlog-5-0-preview1-ready.html