NLog.Web.AspNetCore 6.0.5

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 6, 7, 8 and 9
  • 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:

Showing the top 20 packages that depend on NLog.Web.AspNetCore.

Packages Downloads
Quantum.Framework.AspNetCore
Package Description
43
Quantum.Framework.AspNetCore
保存claims数据到IScmSessionBug修复
38
Quantum.Framework.AspNetCore
增加redis hash方法及验证token有效性
50
Quantum.Framework.AspNetCore
增加用户类型及API结果类型
46
Quantum.Framework.AspNetCore
增加获取用户授权KEY及获取用户角色方法
62
ZhonTai.Admin
中台Admin接口库
36
ZhonTai.Admin
中台Admin权限管理接口库
35
ZhonTai.Admin
中台Admin权限管理接口库
36
ZhonTai.Admin
中台Admin权限管理接口库
37
ZhonTai.Admin
中台Admin权限管理接口库
38
ZhonTai.Admin
中台Admin权限管理接口库
39
ZhonTai.Admin
中台Admin权限管理接口库
40
ZhonTai.Admin
中台Admin权限管理接口库
41
ZhonTai.Admin
中台Admin权限管理接口库
43

ChangeLog: - [#1108] Updated dependency NLog v6.0.5 (@snakefoot) List of major changes in NLog v6.0: https://nlog-project.org/2025/04/29/nlog-6-0-major-changes.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

Version Downloads Last updated
6.0.5 4 10/10/2025
6.0.4 6 09/12/2025
6.0.3 7 08/15/2025
6.0.2 12 07/25/2025
6.0.1 12 07/05/2025
6.0.0 12 06/29/2025
6.0.0-rc4 12 06/16/2025
6.0.0-rc3 9 06/14/2025
6.0.0-rc2 13 06/06/2025
5.5.0 15 06/01/2025
5.4.0 23 02/06/2025
5.3.15 25 12/24/2024
5.3.14 24 11/14/2024
5.3.13 20 11/28/2024
5.3.12 21 12/10/2024
5.3.11 25 05/12/2024
5.3.10 29 05/12/2024
5.3.9 26 05/12/2024
5.3.8 37 02/04/2024
5.3.7 34 04/23/2024
5.3.5 26 04/22/2024
5.3.4 28 04/22/2024
5.3.3 28 04/23/2024
5.3.2 33 04/22/2024
5.3.1 30 04/23/2024
5.3.0 31 06/05/2023
5.2.3 74 04/13/2023
5.2.2 35 04/23/2024
5.2.1 30 06/15/2023
5.2.0 32 12/07/2022
5.1.5 30 05/29/2024
5.1.4 28 05/27/2024
5.1.2 29 04/10/2024
5.1.1 34 08/25/2022
5.1.0 40 04/09/2024
4.15.0 29 05/16/2024
4.13.0 33 05/02/2024
4.13.0-readme-preview 23 05/23/2024
4.12.0 30 06/11/2022
4.11.0 33 06/06/2022
4.8.6 28 05/29/2024
4.6.0 31 04/22/2024
4.5.4 31 05/08/2024
4.5.3 31 06/05/2023
4.5.2 32 06/15/2023
4.5.0 25 04/23/2024
4.4.0 31 05/02/2024
4.3.1 33 04/25/2024
4.3.0 34 04/22/2024