NLog.Web.AspNetCore 6.1.3

Prefix Reserved
dotnet add package NLog.Web.AspNetCore --version 6.1.3
                    
NuGet\Install-Package NLog.Web.AspNetCore -Version 6.1.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NLog.Web.AspNetCore" Version="6.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NLog.Web.AspNetCore" Version="6.1.3" />
                    
Directory.Packages.props
<PackageReference Include="NLog.Web.AspNetCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NLog.Web.AspNetCore --version 6.1.3
                    
#r "nuget: NLog.Web.AspNetCore, 6.1.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NLog.Web.AspNetCore@6.1.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NLog.Web.AspNetCore&version=6.1.3
                    
Install as a Cake Addin
#tool nuget:?package=NLog.Web.AspNetCore&version=6.1.3
                    
Install as a Cake Tool

NLog.Web.AspNetCore

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Integrates NLog as Logging provider for the ASP.NET Core platform, by just calling UseNLog() with the application host-builder.

Providing features like:

Supported platforms:

  • ASP.NET Core 6, 7, 8, 9 and 10
  • ASP.NET Core 2, .NET Standard 2.0 and .NET 4.6.2+

Register NLog as logging provider:

builder.Logging.ClearProviders();
builder.Host.UseNLog();

If logging is needed before the host building, then one can use fluent setup:

var logger = NLog.LogManager.Setup().LoadConfigurationFromAppSettings().GetCurrentClassLogger();

Alternative include NLog.Web.AspNetCore extension in the NLog.config file:

<extensions>
    <add assembly="NLog.Web.AspNetCore"/>
</extensions>

Useful Links:

Product 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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (492)

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 (3)

Showing the top 3 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.
Version Downloads Last Updated
6.1.3 11,872 5/5/2026
6.1.2 1,119,823 2/28/2026
6.1.1 646,354 1/31/2026
6.1.0 1,495,972 11/12/2025
6.0.6 149,650 11/9/2025
6.0.5 735,052 10/9/2025
6.0.4 594,534 9/11/2025
6.0.3 795,115 8/10/2025
6.0.2 435,191 7/20/2025
6.0.1 487,348 6/28/2025
6.0.0 222,749 6/21/2025
5.5.0 2,863,951 5/29/2025
5.4.0 7,704,003 2/2/2025
5.3.15 5,431,932 11/21/2024
5.3.14 4,452,162 9/23/2024
5.3.13 480,077 9/12/2024
5.3.12 2,441,137 8/12/2024
Loading failed

ChangeLog:

- [#1137] Updated dependency NLog v6.1.3 (@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