NLog.Web.AspNetCore
                              
                            
                                6.0.5
                            
                        
                            
                                
                                
                                    Prefix Reserved
                                
                            
                    dotnet add package NLog.Web.AspNetCore --version 6.0.5
NuGet\Install-Package NLog.Web.AspNetCore -Version 6.0.5
<PackageReference Include="NLog.Web.AspNetCore" Version="6.0.5" />
<PackageVersion Include="NLog.Web.AspNetCore" Version="6.0.5" />
<PackageReference Include="NLog.Web.AspNetCore" />
paket add NLog.Web.AspNetCore --version 6.0.5
#r "nuget: NLog.Web.AspNetCore, 6.0.5"
#:package NLog.Web.AspNetCore@6.0.5
#addin nuget:?package=NLog.Web.AspNetCore&version=6.0.5
#tool nuget:?package=NLog.Web.AspNetCore&version=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:
| 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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 was computed. | 
| .NET Framework | net461 was computed. net462 is compatible. 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. | 
- 
                                                    
.NETFramework 4.6.2
- Microsoft.AspNetCore.Hosting.Abstractions (>= 2.3.0)
 - Microsoft.AspNetCore.Http (>= 2.3.0)
 - Microsoft.AspNetCore.Routing.Abstractions (>= 2.3.0)
 - NLog.Extensions.Logging (>= 6.0.5)
 
 - 
                                                    
.NETStandard 2.0
- Microsoft.AspNetCore.Hosting.Abstractions (>= 2.3.0)
 - Microsoft.AspNetCore.Http (>= 2.3.0)
 - Microsoft.AspNetCore.Routing.Abstractions (>= 2.3.0)
 - NLog.Extensions.Logging (>= 6.0.5)
 
 - 
                                                    
net6.0
- NLog.Extensions.Logging (>= 6.0.5)
 
 - 
                                                    
net8.0
- NLog.Extensions.Logging (>= 6.0.5)
 
 
NuGet packages (467)
Showing the top 5 NuGet packages that depend on NLog.Web.AspNetCore:
| Package | Downloads | 
|---|---|
| 
                                                        
                                                            Coder.Extension
                                                        
                                                         Coder扩展程序,包含:AutoMapper,Log,CsRedis,Swagger(Knife4j),Cors,Autofac,Hangfire,TimedJob,CAP,SqlSugar,Polly(超时,重试,熔断,降级)等扩展服务和中间件。  | 
                                                    |
| 
                                                        
                                                            Ccf.Ck.Libs.Logging
                                                        
                                                         Extends the default nlog library with static methods for logging and default visualization of the logged entries  | 
                                                    |
| 
                                                        
                                                            OrchardCore.Logging.NLog
                                                        
                                                            
                                                         Orchard Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Provides NLog logging for application.  | 
                                                    |
| 
                                                        
                                                            Solhigson.Framework
                                                        
                                                         Utility Library  | 
                                                    |
| 
                                                        
                                                            EachShow.Host
                                                        
                                                         主机启动程序  | 
                                                    
GitHub repositories (66)
Showing the top 20 popular GitHub repositories that depend on NLog.Web.AspNetCore:
| Repository | Stars | 
|---|---|
| 
                                                        
                                                            BeyondDimension/SteamTools
                                                        
                                                         
                                                            🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            Jackett/Jackett
                                                        
                                                         
                                                            API Support for your favorite torrent trackers
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            JustArchiNET/ArchiSteamFarm
                                                        
                                                         
                                                            C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            OrchardCMS/OrchardCore
                                                        
                                                         
                                                            Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            NLog/NLog
                                                        
                                                         
                                                            NLog - Flexible and Structured Logging for various .NET Platforms
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            cobbr/Covenant
                                                        
                                                         
                                                            Covenant is a collaborative .NET C2 framework for red teamers.
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            ravendb/ravendb
                                                        
                                                         
                                                            ACID Document Database
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            ONLYOFFICE/CommunityServer
                                                        
                                                         
                                                            Free open source office suite with business productivity tools: document and project management, CRM, mail aggregator.
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            liukuo362573/YiShaAdmin
                                                        
                                                         
                                                            基于 .NET Core MVC 的权限管理系统,代码易读易懂、界面简洁美观
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            dotnetcore/AgileConfig
                                                        
                                                         
                                                            基于.NET Core开发的轻量级分布式配置中心 / .NET  Core lightweight configuration server
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            AlphaYu/adnc
                                                        
                                                         
                                                            .NET微服务/分布式开发框架,同时也适用于单体架构系统的开发。
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            geffzhang/NanoFabric
                                                        
                                                         
                                                            基于Consul + .NET Core + Polly + Ocelot + Exceptionless + IdentityServer等开源项目的微服务开发框架
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            izhaorui/Zr.Admin.NET
                                                        
                                                         
                                                            🎉ZR.Admin.NET是一款前后端分离的、跨平台基于RBAC的通用权限管理后台。ORM采用SqlSugar。前端采用Vue、AntDesign,支持多租户、缓存、任务调度、支持统一异常处理、接口限流、支持一键生成前后端代码,支持动态国际化翻译(Vue3),等诸多黑科技,代码简洁易懂、易扩展让开发更简单、更通用。
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            CoreUnion/CoreShop
                                                        
                                                         
                                                            基于 Asp.Net Core 8.0、Uni-App开发,支持可视化布局的小程序商城系统,前后端分离,支持分布式部署,跨平台运行,拥有分销、代理、团购、拼团、秒杀、直播、优惠券、自定义表单等众多营销功能,拥有完整SKU、下单、售后、物流流程。支持一套代码编译发布微信小程序版、H5版、Android版、iOS版、支付宝小程序版、字节跳动小程序版、QQ小程序版等共10个平台。
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            iioter/iotgateway
                                                        
                                                         
                                                            An industrial IoTGateway with B/S architecture that enables bidirectional communication between industrial devices (southbound connections) and IoT platforms (northbound connections). It supports numerous industrial protocols, and can connect to various IoT cloud platforms.
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            Mimetis/Dotmim.Sync
                                                        
                                                         
                                                            A brand new database synchronization framework, multi platform, multi databases, developed on top of .Net Standard 2.0. https://dotmimsync.readthedocs.io/
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            dotnetzoom/AspNetCore-WebApi-Course
                                                        
                                                         
                                                            🥇 Professional REST API design with ASP.NET Core WebAPI
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            lysilver/KopSoftWms
                                                        
                                                         
                                                            KopSoft仓库管理系统
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            91270/Meiam.System
                                                        
                                                         
                                                            .NET 8 / .NET 5 WebAPI + Vue 2.0 + RBAC 企业级前后端分离权限框架
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            leeveel/GeekServer
                                                        
                                                         
                                                            基于.Netcore的开发效率高,性能强,跨平台,持久化层透明,支持不停服热更新的游戏服务器。Best for your unity game server!
                                                         
                                                     | 
                                                    
| Version | Downloads | Last Updated | 
|---|---|---|
| 6.0.5 | 164,958 | 10/9/2025 | 
| 6.0.4 | 282,145 | 9/11/2025 | 
| 6.0.3 | 397,564 | 8/10/2025 | 
| 6.0.2 | 237,332 | 7/20/2025 | 
| 6.0.1 | 303,926 | 6/28/2025 | 
| 6.0.0 | 108,998 | 6/21/2025 | 
| 5.5.0 | 950,687 | 5/29/2025 | 
| 5.4.0 | 4,873,449 | 2/2/2025 | 
| 5.3.15 | 3,051,424 | 11/21/2024 | 
| 5.3.14 | 3,322,467 | 9/23/2024 | 
| 5.3.13 | 385,735 | 9/12/2024 | 
| 5.3.12 | 1,822,620 | 8/12/2024 | 
| 5.3.11 | 4,707,914 | 5/7/2024 | 
| 5.3.10 | 266,569 | 4/30/2024 | 
| 5.3.9 | 136,303 | 4/27/2024 | 
| 5.3.8 | 6,155,822 | 12/29/2023 | 
| 5.3.7 | 871,911 | 12/6/2023 | 
| 5.3.5 | 2,847,557 | 10/15/2023 | 
| 5.3.4 | 1,480,529 | 9/6/2023 | 
| 5.3.3 | 1,120,903 | 8/6/2023 | 
| 5.3.2 | 1,944,756 | 7/4/2023 | 
| 5.3.1 | 75,784 | 7/1/2023 | 
| 5.3.0 | 2,052,024 | 5/30/2023 | 
| 5.2.3 | 3,522,369 | 3/28/2023 | 
| 5.2.2 | 2,291,253 | 2/17/2023 | 
| 5.2.1 | 2,783,356 | 12/30/2022 | 
| 5.2.0 | 1,752,232 | 11/27/2022 | 
| 5.1.5 | 2,658,679 | 10/25/2022 | 
| 5.1.4 | 2,904,021 | 9/1/2022 | 
| 5.1.2 | 108,704 | 9/1/2022 | 
| 5.1.1 | 595,993 | 8/17/2022 | 
| 5.1.0 | 1,538,995 | 7/18/2022 | 
| 5.0.0 | 4,536,471 | 5/17/2022 | 
| 4.15.0 | 1,569,498 | 6/4/2022 | 
| 4.14.0 | 14,560,039 | 8/28/2021 | 
| 4.13.0 | 2,431,264 | 7/14/2021 | 
| 4.13.0-readme-preview | 43,304 | 5/3/2021 | 
| 4.12.0 | 5,812,744 | 3/29/2021 | 
| 4.11.0 | 1,779,958 | 2/27/2021 | 
| 4.10.0 | 2,754,857 | 12/30/2020 | 
| 4.9.3 | 7,248,900 | 8/1/2020 | 
| 4.9.2 | 6,086,801 | 4/20/2020 | 
| 4.9.1 | 1,295,168 | 3/30/2020 | 
| 4.9.0 | 8,582,670 | 10/11/2019 | 
| 4.8.6 | 461,243 | 9/30/2019 | 
| 4.8.5 | 1,309,731 | 9/7/2019 | 
| 4.8.4 | 1,851,492 | 7/2/2019 | 
| 4.8.3 | 730,424 | 6/5/2019 | 
| 4.8.2 | 1,363,182 | 5/6/2019 | 
| 4.8.1 | 1,707,157 | 3/18/2019 | 
| 4.8.0 | 2,353,899 | 1/25/2019 | 
| 4.7.1 | 720,479 | 1/6/2019 | 
| 4.7.0 | 2,395,685 | 9/22/2018 | 
| 4.6.0 | 930,126 | 8/5/2018 | 
| 4.5.4 | 2,672,857 | 5/10/2018 | 
| 4.5.3 | 145,300 | 4/29/2018 | 
| 4.5.2 | 356,285 | 4/12/2018 | 
| 4.5.1 | 213,341 | 4/2/2018 | 
| 4.5.0 | 105,424 | 3/27/2018 | 
| 4.4.1 | 1,102,073 | 6/16/2017 | 
| 4.4.0 | 100,189 | 5/14/2017 | 
| 4.3.1 | 234,863 | 2/10/2017 | 
| 4.3.0 | 43,251 | 1/18/2017 | 
| 4.2.4 | 22,333 | 7/3/2016 | 
| 4.2.3 | 149,626 | 5/24/2016 | 
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