mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
remove debug logging for now
This commit is contained in:
parent
29fc3a10db
commit
3c2357b5db
2 changed files with 1 additions and 8 deletions
|
|
@ -12,7 +12,6 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="JetBrains.Annotations" Version="11.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -4,25 +4,19 @@
|
|||
using FilterLists.Services.DependencyInjection.Extensions;
|
||||
using JetBrains.Annotations;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace FilterLists.Api
|
||||
{
|
||||
public class Startup
|
||||
{
|
||||
public Startup(ILoggerFactory loggerFactory)
|
||||
public Startup()
|
||||
{
|
||||
var builder = new ConfigurationBuilder()
|
||||
.SetBasePath(Directory.GetCurrentDirectory())
|
||||
.AddJsonFile("appsettings.json", false, true);
|
||||
Configuration = builder.Build();
|
||||
|
||||
//TODO: replace with serilog
|
||||
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
|
||||
loggerFactory.AddDebug();
|
||||
}
|
||||
|
||||
private IConfigurationRoot Configuration { get; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue