NLog.Extensions.Hosting
5.3.12
Prefix Reserved
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package NLog.Extensions.Hosting --version 5.3.12
NuGet\Install-Package NLog.Extensions.Hosting -Version 5.3.12
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NLog.Extensions.Hosting" Version="5.3.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NLog.Extensions.Hosting --version 5.3.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NLog.Extensions.Hosting, 5.3.12"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NLog.Extensions.Hosting as a Cake Addin #addin nuget:?package=NLog.Extensions.Hosting&version=5.3.12 // Install NLog.Extensions.Hosting as a Cake Tool #tool nuget:?package=NLog.Extensions.Hosting&version=5.3.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NLog.Extensions.Hosting
Integrates NLog as Logging provider for Microsoft.Extensions.Logging, by just calling UseNLog()
on the application-IHostBuilder.
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 5, 6, 7 and 8
- .NET Core 2 and 3
- .NET Standard 2.0+
Registration of 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. |
.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 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 | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.Extensions.Hosting.Abstractions (>= 2.1.0)
- NLog.Extensions.Logging (>= 5.3.12)
-
.NETStandard 2.1
- Microsoft.Extensions.Hosting.Abstractions (>= 3.1.0)
- NLog.Extensions.Logging (>= 5.3.12)
-
net6.0
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
- NLog.Extensions.Logging (>= 5.3.12)
-
net8.0
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- NLog.Extensions.Logging (>= 5.3.12)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on NLog.Extensions.Hosting:
Package | Downloads |
---|---|
Tsukiy0.Extensions.Logging.NLog
Package Description |
|
Nuuvify.CommonPack.NLog
Implementação de Log customizado com NLog e ILogger |
|
Sze.Base.Core
Package Description |
|
ZhongzhouShaonian.Updater
提供软件更新程序的基础调用 |
|
imL.Frotcom.Hosting.Core
Not so free tools. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on NLog.Extensions.Hosting:
Repository | Stars |
---|---|
NLog/NLog
NLog - Advanced and Structured Logging for Various .NET Platforms
|
Version | Downloads | Last updated |
---|---|---|
5.3.15 | 48 | 11/21/2024 |
5.3.14 | 14,403 | 9/23/2024 |
5.3.13 | 4,877 | 9/12/2024 |
5.3.12 | 17,681 | 8/12/2024 |
5.3.11 | 59,403 | 5/7/2024 |
5.3.10 | 7,503 | 4/30/2024 |
5.3.9 | 1,439 | 4/27/2024 |
5.3.8 | 117,783 | 12/29/2023 |
5.3.7 | 32,158 | 12/6/2023 |
5.3.5 | 58,373 | 10/15/2023 |
5.3.4 | 36,452 | 9/6/2023 |
5.3.3 | 30,312 | 8/5/2023 |
5.3.2 | 50,973 | 7/4/2023 |
5.3.1 | 3,783 | 7/1/2023 |
5.3.0 | 60,942 | 5/30/2023 |
5.2.5 | 3,038 | 5/25/2023 |
5.2.3 | 43,747 | 3/28/2023 |
5.2.2 | 58,334 | 2/17/2023 |
5.2.1 | 79,210 | 12/29/2022 |
5.2.0 | 39,704 | 11/27/2022 |
5.1.0 | 67,741 | 10/25/2022 |
5.0.4 | 53,536 | 9/1/2022 |
5.0.3 | 1,382 | 8/31/2022 |
5.0.2 | 22,207 | 8/12/2022 |
5.0.1 | 39,864 | 6/23/2022 |
5.0.0 | 47,044 | 5/17/2022 |
1.7.5 | 24,889 | 6/4/2022 |
1.7.4 | 289,962 | 8/25/2021 |
1.7.3 | 88,460 | 6/15/2021 |
1.7.2 | 95,662 | 3/26/2021 |
1.7.1 | 32,594 | 2/26/2021 |
1.7.0 | 47,251 | 12/29/2020 |
1.6.5 | 52,220 | 8/27/2020 |
1.6.4 | 53,207 | 5/20/2020 |
1.6.3 | 1,590 | 5/11/2020 |
1.6.2 | 43,549 | 3/16/2020 |
1.6.1 | 58,445 | 10/19/2019 |
1.6.0 | 3,504 | 10/7/2019 |
1.5.4 | 14,397 | 9/6/2019 |
1.5.3 | 2,311 | 8/28/2019 |
1.5.2 | 12,900 | 7/14/2019 |
1.5.1 | 5,338 | 6/5/2019 |
1.5.0 | 4,805 | 4/30/2019 |
1.4.0 | 26,445 | 1/16/2019 |
1.3.0 | 32,175 | 9/22/2018 |
1.2.1 | 7,780 | 9/2/2018 |