NLog.Extensions.Hosting
6.3.0
Prefix Reserved
dotnet add package NLog.Extensions.Hosting --version 6.3.0
NuGet\Install-Package NLog.Extensions.Hosting -Version 6.3.0
<PackageReference Include="NLog.Extensions.Hosting" Version="6.3.0" />
<PackageVersion Include="NLog.Extensions.Hosting" Version="6.3.0" />
<PackageReference Include="NLog.Extensions.Hosting" />
paket add NLog.Extensions.Hosting --version 6.3.0
#r "nuget: NLog.Extensions.Hosting, 6.3.0"
#:package NLog.Extensions.Hosting@6.3.0
#addin nuget:?package=NLog.Extensions.Hosting&version=6.3.0
#tool nuget:?package=NLog.Extensions.Hosting&version=6.3.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 8, 10 and 11
- .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 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 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. net11.0 is compatible. |
| .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.3.0)
-
.NETStandard 2.0
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- NLog.Extensions.Logging (>= 6.3.0)
-
.NETStandard 2.1
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- NLog.Extensions.Logging (>= 6.3.0)
-
net10.0
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.0)
- NLog.Extensions.Logging (>= 6.3.0)
-
net11.0
- NLog.Extensions.Logging (>= 6.3.0)
-
net8.0
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- NLog.Extensions.Logging (>= 6.3.0)
NuGet packages (11)
Showing the top 5 NuGet packages that depend on NLog.Extensions.Hosting:
| Package | Downloads |
|---|---|
|
Sze.Base.Core
Package Description |
|
|
Tsukiy0.Extensions.Logging.NLog
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.3.0 | 0 | 11/10/2026 |
| 6.2.2 | 14,498 | 10/15/2026 |
| 6.2.1 | 31,029 | 9/16/2026 |
| 6.2.0 | 27,493 | 8/16/2026 |
| 6.1.4 | 36,281 | 7/8/2026 |
| 6.1.3 | 93,915 | 5/4/2026 |
| 6.1.2 | 85,494 | 2/28/2026 |
| 6.1.1 | 33,453 | 1/31/2026 |
| 6.1.0 | 126,435 | 11/12/2025 |
| 6.0.6 | 50,889 | 11/9/2025 |
| 6.0.5 | 67,203 | 10/9/2025 |
| 6.0.4 | 63,729 | 9/11/2025 |
| 6.0.3 | 89,505 | 8/10/2025 |
| 6.0.2 | 64,955 | 7/20/2025 |
| 6.0.1 | 82,774 | 6/28/2025 |
| 6.0.0 | 50,017 | 6/21/2025 |
| 5.5.0 | 96,644 | 5/29/2025 |
ChangeLog:
- Added .NET 11 support (#891, @304NotModified)
- Removed .NET 6 support (#891, @304NotModified)
- Moved to GitHub Actions (#874, @304NotModified)
- Moved to Coverlet (#880, @304NotModified)
Full changelog: https://github.com/NLog/NLog.Extensions.Logging/blob/master/CHANGELOG.MD