mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Log Asp.Net.Core web requests
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.1.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.1.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.FileProviders.Physical" Version="2.1.0" />
|
<PackageReference Include="Microsoft.Extensions.FileProviders.Physical" Version="2.1.0" />
|
||||||
<PackageReference Include="NLog" Version="4.5.6" />
|
<PackageReference Include="NLog" Version="4.5.6" />
|
||||||
|
<PackageReference Include="NLog.Web.AspNetCore" Version="4.5.4" />
|
||||||
<PackageReference Include="System.ServiceProcess.ServiceController" Version="4.5.0" />
|
<PackageReference Include="System.ServiceProcess.ServiceController" Version="4.5.0" />
|
||||||
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.5.0" />
|
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.5.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@@ -8,12 +8,13 @@ using Microsoft.AspNetCore;
|
|||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using NLog;
|
using NLog;
|
||||||
|
using NLog.Web;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
namespace Jackett.Server
|
namespace Jackett.Server
|
||||||
{
|
{
|
||||||
@@ -168,6 +169,7 @@ namespace Jackett.Server
|
|||||||
.UseConfiguration(Configuration)
|
.UseConfiguration(Configuration)
|
||||||
.UseUrls(urls)
|
.UseUrls(urls)
|
||||||
.PreferHostingUrls(true)
|
.PreferHostingUrls(true)
|
||||||
.UseStartup<Startup>();
|
.UseStartup<Startup>()
|
||||||
|
.UseNLog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user