NLog.Extensions.Logging
6.1.0
Prefix Reserved
dotnet add package NLog.Extensions.Logging --version 6.1.0
NuGet\Install-Package NLog.Extensions.Logging -Version 6.1.0
<PackageReference Include="NLog.Extensions.Logging" Version="6.1.0" />
<PackageVersion Include="NLog.Extensions.Logging" Version="6.1.0" />
<PackageReference Include="NLog.Extensions.Logging" />
paket add NLog.Extensions.Logging --version 6.1.0
#r "nuget: NLog.Extensions.Logging, 6.1.0"
#:package NLog.Extensions.Logging@6.1.0
#addin nuget:?package=NLog.Extensions.Logging&version=6.1.0
#tool nuget:?package=NLog.Extensions.Logging&version=6.1.0
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 check NLog.Web.AspNetCore.
Supported platforms:
- .NET 6, 7, 8, 9 and 10
- .NET Standard 2.0 and 2.1
- .NET 4.6.2 - 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. 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. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 is compatible. 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. |
-
.NETFramework 4.6.2
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- NLog (>= 6.0.6)
-
.NETStandard 2.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- NLog (>= 6.0.6)
-
.NETStandard 2.1
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- NLog (>= 6.0.6)
-
net10.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Logging (>= 10.0.0)
- NLog (>= 6.0.6)
-
net6.0
- Microsoft.Extensions.Configuration.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Logging (>= 6.0.0)
- NLog (>= 6.0.6)
-
net8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- NLog (>= 6.0.6)
NuGet packages (350)
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. |
|
|
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. |
|
|
Ccf.Ck.Libs.Logging
Extends the default nlog library with static methods for logging and default visualization of the logged entries |
|
|
NStratis
The C# Bitcoin Library based on NBitcoin |
GitHub repositories (88)
Showing the top 20 popular GitHub repositories that depend on NLog.Extensions.Logging:
| Repository | Stars |
|---|---|
|
microsoft/PowerToys
Microsoft PowerToys is a collection of utilities that help you customize Windows and streamline everyday tasks
|
|
|
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
|
|
|
LykosAI/StabilityMatrix
Multi-Platform Package Manager for Stable Diffusion
|
|
|
NLog/NLog
NLog - Flexible and Structured Logging for various .NET Platforms
|
|
|
Prowlarr/Prowlarr
Prowlarr is an indexer manager/proxy built on the popular *arr .net/reactjs base stack to integrate with your various PVR apps, supporting management of both Torrent Trackers and Usenet Indexers.
|
|
|
Lidarr/Lidarr
Looks and smells like Sonarr but made for music.
|
|
|
cyanfish/naps2
Scan documents to PDF and more, as simply as possible.
|
|
|
Readarr/Readarr
Book Manager and Automation (Sonarr for Ebooks)
|
|
|
robinrodricks/FluentFTP
An FTP and FTPS client for .NET & .NET Standard, optimized for speed. Provides extensive FTP commands, File uploads/downloads, SSL/TLS connections, Automatic directory listing parsing, File hashing/checksums, File permissions/CHMOD, FTP proxies, FXP support, UTF-8 support, Async/await support, Powershell support and more. Written entirely in C#.
|
|
|
microsurging/surging
Surging is a micro-service engine that provides a lightweight, high-performance, modular RPC request pipeline. support Event-based Asynchronous Pattern and reactive programming ,The service engine supports http, TCP, WS,Grpc, Thrift,Mqtt, UDP, and DNS protocols. It uses ZooKeeper and Consul as a registry, and integrates it. Hash, random, polling, Fair Polling as a load balancing algorithm, built-in service governance to ensure reliable RPC communication, the engine contains Diagnostic, link tracking for protocol and middleware calls, and integration SkyWalking Distributed APM
|
|
|
Nexus-Mods/NexusMods.App
Home of the development of the Nexus Mods App
|
|
|
vpnhood/VpnHood
Undetectable Fast Portable VPN
|
|
|
Cysharp/ZLogger
Zero Allocation Text/Structured Logger for .NET with StringInterpolation and Source Generator, built on top of a Microsoft.Extensions.Logging.
|
|
|
geffzhang/NanoFabric
基于Consul + .NET Core + Polly + Ocelot + Exceptionless + IdentityServer等开源项目的微服务开发框架
|
|
|
AddictedCS/soundfingerprinting
Open source audio fingerprinting in .NET. An efficient algorithm for acoustic fingerprinting written purely in C#.
|
|
|
CodeMazeBlog/CodeMazeGuides
The main repository for all the Code Maze guides
|
|
|
wabbajack-tools/wabbajack
An automated Modlist installer for various games.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 6.1.0 | 91,925 | 11/12/2025 |
| 6.0.6 | 56,602 | 11/9/2025 |
| 6.0.5 | 392,153 | 10/9/2025 |
| 6.0.4 | 443,985 | 9/11/2025 |
| 6.0.3 | 594,656 | 8/10/2025 |
| 6.0.2 | 362,620 | 7/20/2025 |
| 6.0.1 | 404,224 | 6/28/2025 |
| 6.0.0 | 162,506 | 6/21/2025 |
| 5.5.0 | 1,341,818 | 5/29/2025 |
| 5.4.0 | 6,545,053 | 2/2/2025 |
| 5.3.15 | 4,257,985 | 11/21/2024 |
| 5.3.14 | 2,698,631 | 9/23/2024 |
| 5.3.13 | 3,393,510 | 9/12/2024 |
| 5.3.12 | 2,409,690 | 8/12/2024 |
| 5.3.11 | 6,351,566 | 5/7/2024 |
| 5.3.10 | 412,088 | 4/30/2024 |
| 5.3.9 | 177,773 | 4/27/2024 |
| 5.3.8 | 9,554,641 | 12/29/2023 |
| 5.3.7 | 1,259,613 | 12/6/2023 |
| 5.3.5 | 3,665,762 | 10/15/2023 |
| 5.3.4 | 2,204,834 | 9/6/2023 |
| 5.3.3 | 1,513,449 | 8/5/2023 |
| 5.3.2 | 2,609,112 | 7/4/2023 |
| 5.3.1 | 137,098 | 7/1/2023 |
| 5.3.0 | 2,975,781 | 5/30/2023 |
| 5.2.5 | 377,338 | 5/25/2023 |
| 5.2.3 | 4,458,223 | 3/28/2023 |
| 5.2.2 | 3,286,519 | 2/17/2023 |
| 5.2.1 | 4,011,416 | 12/29/2022 |
| 5.2.0 | 2,321,745 | 11/27/2022 |
| 5.1.0 | 3,371,869 | 10/25/2022 |
| 5.0.4 | 4,105,576 | 9/1/2022 |
| 5.0.3 | 125,550 | 8/31/2022 |
| 5.0.2 | 1,059,124 | 8/12/2022 |
| 5.0.1 | 2,503,680 | 6/23/2022 |
| 5.0.0 | 5,134,791 | 5/17/2022 |
| 1.7.5 | 2,117,091 | 6/4/2022 |
| 1.7.4 | 20,355,140 | 8/25/2021 |
| 1.7.3 | 4,164,833 | 6/15/2021 |
| 1.7.2 | 10,301,577 | 3/26/2021 |
| 1.7.1 | 2,527,791 | 2/26/2021 |
| 1.7.0 | 3,896,067 | 12/29/2020 |
| 1.6.5 | 3,473,196 | 8/27/2020 |
| 1.6.4 | 9,472,233 | 5/20/2020 |
| 1.6.3 | 505,625 | 5/11/2020 |
| 1.6.2 | 8,104,935 | 3/16/2020 |
| 1.6.1 | 4,003,019 | 10/19/2019 |
| 1.6.0 | 7,862,445 | 10/7/2019 |
| 1.5.4 | 2,238,583 | 9/6/2019 |
| 1.5.3 | 396,234 | 8/28/2019 |
| 1.5.2 | 771,287 | 7/14/2019 |
| 1.5.1 | 3,071,320 | 6/5/2019 |
| 1.5.0 | 1,547,618 | 4/30/2019 |
| 1.4.0 | 5,499,721 | 1/16/2019 |
| 1.3.0 | 3,989,737 | 9/22/2018 |
| 1.2.1 | 1,224,451 | 8/5/2018 |
| 1.2.0 | 332,921 | 7/20/2018 |
| 1.1.0 | 667,869 | 5/25/2018 |
| 1.0.2 | 2,873,440 | 5/10/2018 |
| 1.0.1 | 851,801 | 4/7/2018 |
| 1.0.0 | 806,902 | 3/25/2018 |
ChangeLog:
- [#818] Added TargetFramework .NET 10
Full changelog: https://github.com/NLog/NLog.Extensions.Logging/blob/master/CHANGELOG.MD
List of major changes in NLog 6.0: https://nlog-project.org/2025/04/29/nlog-6-0-major-changes.html