NLog.Web.AspNetCore 5.3.11
NLog.Web.AspNetCore
Integrates NLog as Logging provider for the ASP.NET Core platform, by just calling UseNLog() with the application host-builder.
Providing features like:
- Enrich logging output with additional details from active HttpContext using NLog LayoutRenderers, by just updating the NLog configuration.
- Supports middleware injection for HTTP Request Logging and HTTP Response Logging.
- Routing logging output to multiple destinations via the available NLog Targets
- Rendering logging output into standard formats like JSON, CVS, W3C ELF and XML using NLog Layouts.
- Contributions are always welcome, by creating a pull request.
Supported platforms:
- ASP.NET Core 5, 6, 7 and 8
- ASP.NET Core 3.1
- ASP.NET Core 2, .NET Standard 2.0 and .NET 4.6.1+
Registration of NLog.Web.AspNetCore in the NLog.config file:
<extensions>
<add assembly="NLog.Web.AspNetCore"/>
</extensions>
Registration of NLog.Web.AspNetCore can also be performed with fluent setup:
NLog.LogManager.Setup().LoadConfigurationFromAppSettings();
Useful Links:
No packages depend on NLog.Web.AspNetCore.
ChangeLog:
- Updated dependency NLog.Extensions.Logging v5.3.11 (#1037) (@snakefoot)
List of major changes in NLog 5.0: https://nlog-project.org/2022/05/16/nlog-5-0-finally-ready.html
Full changelog: https://github.com/NLog/NLog.Web/releases
List of available Layout Renderers: https://nlog-project.org/config/?tab=layout-renderers&search=package:nlog.web.aspnetcore
.NET Framework 4.6.1
- Microsoft.AspNetCore.Hosting.Abstractions (>= 2.1.1)
- System.Text.Encodings.Web (>= 4.5.1)
- NLog.Extensions.Logging (>= 5.3.11)
- Microsoft.AspNetCore.Routing.Abstractions (>= 2.1.1)
- Microsoft.AspNetCore.Http (>= 2.1.22)
.NET Standard 2.0
- System.Text.Encodings.Web (>= 4.5.1)
- NLog.Extensions.Logging (>= 5.3.11)
- Microsoft.AspNetCore.Routing.Abstractions (>= 2.1.1)
- Microsoft.AspNetCore.Hosting.Abstractions (>= 2.1.1)
- Microsoft.AspNetCore.Http (>= 2.1.22)
.NET 8.0
- NLog.Extensions.Logging (>= 5.3.11)
.NET 6.0
- NLog.Extensions.Logging (>= 5.3.11)
.NET Core 3.1
- NLog.Extensions.Logging (>= 5.3.11)
.NET 5.0
- NLog.Extensions.Logging (>= 5.3.11)
| Version | Downloads | Last updated |
|---|---|---|
| 6.0.5 | 3 | 10/16/2025 |
| 6.0.4 | 2 | 09/19/2025 |
| 6.0.3 | 5 | 08/13/2025 |
| 6.0.2 | 4 | 08/15/2025 |
| 6.0.1 | 5 | 07/03/2025 |
| 6.0.0 | 7 | 06/25/2025 |
| 6.0.0-rc4 | 8 | 06/18/2025 |
| 6.0.0-rc3 | 8 | 06/10/2025 |
| 6.0.0-rc2 | 14 | 06/05/2025 |
| 5.5.0 | 14 | 05/31/2025 |
| 5.4.0 | 27 | 02/27/2025 |
| 5.3.15 | 28 | 12/01/2024 |
| 5.3.14 | 32 | 09/25/2024 |
| 5.3.13 | 28 | 09/18/2024 |
| 5.3.12 | 30 | 08/14/2024 |
| 5.3.11 | 27 | 05/12/2024 |
| 5.3.10 | 26 | 05/12/2024 |
| 5.3.9 | 29 | 05/12/2024 |
| 5.3.8 | 33 | 02/14/2024 |
| 5.3.7 | 34 | 02/06/2024 |
| 5.3.5 | 29 | 02/06/2024 |
| 5.3.4 | 33 | 02/06/2024 |
| 5.3.3 | 30 | 02/06/2024 |
| 5.3.2 | 30 | 02/06/2024 |
| 5.3.1 | 30 | 02/06/2024 |
| 5.3.0 | 34 | 02/06/2024 |
| 5.2.3 | 36 | 02/06/2024 |
| 5.2.2 | 38 | 02/06/2024 |
| 5.2.1 | 49 | 02/06/2024 |
| 5.2.0 | 33 | 02/06/2024 |
| 5.1.5 | 40 | 02/06/2024 |
| 5.1.4 | 32 | 02/06/2024 |
| 5.1.2 | 33 | 02/06/2024 |
| 5.1.1 | 41 | 02/06/2024 |
| 5.1.0 | 48 | 02/06/2024 |
| 5.0.0 | 32 | 02/06/2024 |
| 4.15.0 | 31 | 02/06/2024 |
| 4.14.0 | 32 | 02/06/2024 |
| 4.13.0 | 38 | 02/06/2024 |
| 4.13.0-readme-preview | 27 | 02/06/2024 |
| 4.12.0 | 28 | 02/06/2024 |
| 4.11.0 | 35 | 02/06/2024 |
| 4.10.0 | 30 | 02/06/2024 |
| 4.9.3 | 42 | 02/06/2024 |
| 4.9.2 | 36 | 02/06/2024 |
| 4.9.1 | 35 | 02/06/2024 |
| 4.9.0 | 31 | 02/06/2024 |
| 4.8.6 | 30 | 02/06/2024 |
| 4.8.5 | 39 | 02/06/2024 |
| 4.8.4 | 34 | 02/06/2024 |
| 4.8.3 | 37 | 02/06/2024 |
| 4.8.2 | 30 | 02/06/2024 |
| 4.8.1 | 46 | 02/06/2024 |
| 4.8.0 | 29 | 02/06/2024 |
| 4.7.1 | 35 | 02/06/2024 |
| 4.7.0 | 30 | 02/06/2024 |
| 4.6.0 | 35 | 02/06/2024 |
| 4.5.4 | 35 | 02/06/2024 |
| 4.5.3 | 27 | 02/06/2024 |
| 4.5.2 | 28 | 02/06/2024 |
| 4.5.1 | 31 | 02/06/2024 |
| 4.5.0 | 30 | 02/06/2024 |
| 4.4.1 | 27 | 02/10/2020 |
| 4.4.0 | 29 | 02/06/2024 |
| 4.3.1 | 31 | 02/06/2024 |
| 4.3.0 | 40 | 02/06/2024 |
| 4.2.4 | 33 | 02/06/2024 |
| 4.2.3 | 31 | 02/06/2024 |