NLog.Web.AspNetCore 6.0.4

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
40
Quantum.Framework.AspNetCore
保存claims数据到IScmSessionBug修复
36
Quantum.Framework.AspNetCore
增加redis hash方法及验证token有效性
48
Quantum.Framework.AspNetCore
增加用户类型及API结果类型
43
Quantum.Framework.AspNetCore
增加获取用户授权KEY及获取用户角色方法
60
ZhonTai.Admin
中台Admin接口库
29
ZhonTai.Admin
中台Admin权限管理接口库
28
ZhonTai.Admin
中台Admin权限管理接口库
29
ZhonTai.Admin
中台Admin权限管理接口库
30
ZhonTai.Admin
中台Admin权限管理接口库
31
ZhonTai.Admin
中台Admin权限管理接口库
32
ZhonTai.Admin
中台Admin权限管理接口库
34
ZhonTai.Admin
中台Admin权限管理接口库
36

ChangeLog: - [#1107] Updated dependency NLog v6.0.4 (@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.4 1 09/12/2025
6.0.3 6 08/15/2025
6.0.2 7 07/25/2025
6.0.1 9 07/05/2025
6.0.0 10 06/29/2025
6.0.0-rc4 9 06/16/2025
6.0.0-rc3 8 06/14/2025
6.0.0-rc2 11 06/06/2025
5.5.0 15 06/01/2025
5.4.0 20 02/06/2025
5.3.15 22 12/24/2024
5.3.14 23 11/14/2024
5.3.13 18 11/28/2024
5.3.12 20 12/10/2024
5.3.11 24 05/12/2024
5.3.10 28 05/12/2024
5.3.9 25 05/12/2024
5.3.8 36 02/04/2024
5.3.7 33 04/23/2024
5.3.5 25 04/22/2024
5.3.4 27 04/22/2024
5.3.3 27 04/23/2024
5.3.2 32 04/22/2024
5.3.1 27 04/23/2024
5.3.0 30 06/05/2023
5.2.3 74 04/13/2023
5.2.2 34 04/23/2024
5.2.1 29 06/15/2023
5.2.0 30 12/07/2022
5.1.5 28 05/29/2024
5.1.4 27 05/27/2024
5.1.2 27 04/10/2024
5.1.1 32 08/25/2022
5.1.0 38 04/09/2024
4.15.0 27 05/16/2024
4.13.0 30 05/02/2024
4.13.0-readme-preview 22 05/23/2024
4.12.0 28 06/11/2022
4.11.0 32 06/06/2022
4.8.6 25 05/29/2024
4.6.0 29 04/22/2024
4.5.4 29 05/08/2024
4.5.3 29 06/05/2023
4.5.2 29 06/15/2023
4.5.0 23 04/23/2024
4.4.0 28 05/02/2024
4.3.1 30 04/25/2024
4.3.0 32 04/22/2024