1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-24 23:22:46 +00:00

Log Asp.Net.Core web requests

This commit is contained in:
flightlevel 2018-06-18 22:01:25 +10:00
parent 1ecafe3667
commit 5278b9fb47
2 changed files with 5 additions and 2 deletions

View file

@ -35,6 +35,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.1.0" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Physical" Version="2.1.0" />
<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.Text.Encoding.CodePages" Version="4.5.0" />
</ItemGroup>

View file

@ -8,12 +8,13 @@ using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using NLog;
using NLog.Web;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
namespace Jackett.Server
{
@ -168,6 +169,7 @@ namespace Jackett.Server
.UseConfiguration(Configuration)
.UseUrls(urls)
.PreferHostingUrls(true)
.UseStartup<Startup>();
.UseStartup<Startup>()
.UseNLog();
}
}