NLog.Extensions.Hosting 5.3.10
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
No packages depend on NLog.Extensions.Hosting.
Full changelog: https://github.com/NLog/NLog.Extensions.Logging/blob/master/CHANGELOG.MD
.NET 6.0
- NLog.Extensions.Logging (>= 5.3.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
.NET 8.0
- NLog.Extensions.Logging (>= 5.3.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
.NET Standard 2.0
- NLog.Extensions.Logging (>= 5.3.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 2.1.0)
.NET Standard 2.1
- NLog.Extensions.Logging (>= 5.3.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 3.1.0)
| Version | Downloads | Last updated |
|---|---|---|
| 6.1.2 | 0 | 2026/2/28 |
| 6.1.1 | 0 | 2026/1/31 |
| 6.1.0 | 0 | 2025/11/12 |
| 6.0.6 | 0 | 2025/11/9 |
| 6.0.5 | 0 | 2025/10/9 |
| 6.0.4 | 0 | 2025/9/11 |
| 6.0.3 | 0 | 2025/8/10 |
| 6.0.2 | 0 | 2025/7/20 |
| 6.0.1 | 0 | 2025/6/28 |
| 6.0.0 | 0 | 2025/6/21 |
| 5.5.0 | 0 | 2025/5/29 |
| 5.4.0 | 0 | 2025/2/2 |
| 5.3.15 | 1 | 2026/4/10 |
| 5.3.14 | 1 | 2026/4/10 |
| 5.3.13 | 1 | 2026/4/10 |
| 5.3.12 | 1 | 2026/4/10 |
| 5.3.11 | 5 | 2024/11/21 |
| 5.3.10 | 1 | 2026/4/10 |
| 5.3.9 | 0 | 2024/4/27 |
| 5.3.8 | 0 | 2023/12/29 |
| 5.3.7 | 0 | 2023/12/6 |
| 5.3.5 | 0 | 2023/10/15 |
| 5.3.4 | 0 | 2023/9/6 |
| 5.3.3 | 0 | 2023/8/5 |
| 5.3.2 | 0 | 2023/7/4 |
| 5.3.1 | 0 | 2023/7/1 |
| 5.3.0 | 0 | 2023/5/30 |
| 5.2.5 | 0 | 2023/5/25 |
| 5.2.3 | 0 | 2023/3/28 |
| 5.2.2 | 0 | 2023/2/17 |
| 5.2.1 | 0 | 2022/12/29 |
| 5.2.0 | 0 | 2022/11/27 |
| 5.1.0 | 0 | 2022/10/25 |
| 5.0.4 | 0 | 2022/9/1 |
| 5.0.3 | 0 | 2022/8/31 |
| 5.0.2 | 0 | 2022/8/12 |
| 5.0.1 | 0 | 2022/6/23 |
| 5.0.0 | 0 | 2022/5/17 |
| 1.7.5 | 0 | 2022/6/4 |
| 1.7.4 | 0 | 2021/8/25 |
| 1.7.3 | 0 | 2021/6/15 |
| 1.7.2 | 0 | 2021/3/26 |
| 1.7.1 | 0 | 2021/2/26 |
| 1.7.0 | 0 | 2020/12/29 |
| 1.6.5 | 0 | 2020/8/27 |
| 1.6.4 | 0 | 2020/5/20 |
| 1.6.3 | 0 | 2020/5/11 |
| 1.6.2 | 0 | 2020/3/16 |
| 1.6.1 | 0 | 2019/10/19 |
| 1.6.0 | 0 | 2019/10/7 |
| 1.5.4 | 0 | 2019/9/6 |
| 1.5.3 | 0 | 2019/8/28 |
| 1.5.2 | 0 | 2019/7/14 |
| 1.5.1 | 0 | 2019/6/5 |
| 1.5.0 | 1 | 2026/4/10 |
| 1.4.0 | 0 | 2019/1/16 |
| 1.3.0 | 0 | 2018/9/22 |
| 1.2.1 | 0 | 2018/9/2 |