NLog.Extensions.Hosting
6.2.0
Prefix Reserved
dotnet add package NLog.Extensions.Hosting --version 6.2.0
NuGet\Install-Package NLog.Extensions.Hosting -Version 6.2.0
<PackageReference Include="NLog.Extensions.Hosting" Version="6.2.0" />
<PackageVersion Include="NLog.Extensions.Hosting" Version="6.2.0" />
<PackageReference Include="NLog.Extensions.Hosting" />
paket add NLog.Extensions.Hosting --version 6.2.0
#r "nuget: NLog.Extensions.Hosting, 6.2.0"
#:package NLog.Extensions.Hosting@6.2.0
#addin nuget:?package=NLog.Extensions.Hosting&version=6.2.0
#tool nuget:?package=NLog.Extensions.Hosting&version=6.2.0
NLog.Extensions.Hosting
NLog.Extensions.Hosting integrates NLog as a logging provider for Microsoft.Extensions.Logging by calling UseNLog() on the application HostBuilder.
Application code can continue using ILogger<T>, while NLog provides powerful logging capabilities including:
- 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, use 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
Register NLog as logging provider:
var hostBuilder = new HostBuilder().UseNLog();
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.Hosting.Abstractions (>= 8.0.0)
- NLog.Extensions.Logging (>= 6.2.0)
-
.NETStandard 2.0
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- NLog.Extensions.Logging (>= 6.2.0)
-
.NETStandard 2.1
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- NLog.Extensions.Logging (>= 6.2.0)
-
net10.0
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.0)
- NLog.Extensions.Logging (>= 6.2.0)
-
net6.0
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
- NLog.Extensions.Logging (>= 6.2.0)
-
net8.0
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- NLog.Extensions.Logging (>= 6.2.0)
NuGet packages (12)
Showing the top 5 NuGet packages that depend on NLog.Extensions.Hosting:
| Package | Downloads |
|---|---|
|
Tsukiy0.Extensions.Logging.NLog
Package Description |
|
|
Sze.Base.Core
Package Description |
|
|
Nuuvify.CommonPack.NLog
Implementação de Log customizado com NLog e ILogger |
|
|
ZhongzhouShaonian.Updater
提供软件更新程序的基础调用 |
|
|
imL.Frotcom.Hosting.Core
Not so free tools. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on NLog.Extensions.Hosting:
| Repository | Stars |
|---|---|
|
NLog/NLog
NLog - Flexible and Structured Logging for various .NET Platforms
|
|
|
afunc233/Komiic
a client for https://komiic.com
|
| Version | Downloads | Last Updated |
|---|---|---|
| 6.2.0 | 461 | 8/16/2026 |
| 6.1.4 | 18,258 | 7/8/2026 |
| 6.1.3 | 60,422 | 5/4/2026 |
| 6.1.2 | 61,767 | 2/28/2026 |
| 6.1.1 | 28,991 | 1/31/2026 |
| 6.1.0 | 109,217 | 11/12/2025 |
| 6.0.6 | 49,875 | 11/9/2025 |
| 6.0.5 | 63,854 | 10/9/2025 |
| 6.0.4 | 61,384 | 9/11/2025 |
| 6.0.3 | 77,841 | 8/10/2025 |
| 6.0.2 | 62,676 | 7/20/2025 |
| 6.0.1 | 78,195 | 6/28/2025 |
| 6.0.0 | 48,136 | 6/21/2025 |
| 5.5.0 | 89,282 | 5/29/2025 |
| 5.4.0 | 151,479 | 2/2/2025 |
| 5.3.15 | 306,819 | 11/21/2024 |
| 5.3.14 | 174,446 | 9/23/2024 |