From 6c4c8ee8876f85223c1c0bf0c569e48e2b643f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E8=8D=A3=E5=9B=BD?= Date: Wed, 1 Jun 2022 14:02:01 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E5=90=AF=E7=94=A8=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Program.cs | 32 +++++++++---------- .../Win_in.Sfs.Scp.WebApi.HttpApi.Host.csproj | 4 +-- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Program.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Program.cs index 2911cca..7fff684 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Program.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Program.cs @@ -16,22 +16,22 @@ namespace Win_in.Sfs.Scp.WebApi .AddJsonFile("appsettings.json", false, true) .Build(); - // Log.Logger = new LoggerConfiguration() - // .ReadFrom.Configuration(configuration) - // .CreateLogger(); - - Log.Logger = new LoggerConfiguration() - #if DEBUG - .MinimumLevel.Debug() - #else - .MinimumLevel.Information() - #endif - .MinimumLevel.Override("Microsoft", LogEventLevel.Information) - .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) - .Enrich.FromLogContext() - .WriteTo.Async(c => c.File("Logs/logs.txt",rollingInterval:RollingInterval.Day)) - .WriteTo.Async(c => c.Console()) - .CreateLogger(); + Log.Logger = new LoggerConfiguration() + .ReadFrom.Configuration(configuration) + .CreateLogger(); + // + // Log.Logger = new LoggerConfiguration() + // #if DEBUG + // .MinimumLevel.Debug() + // #else + // .MinimumLevel.Information() + // #endif + // .MinimumLevel.Override("Microsoft", LogEventLevel.Information) + // .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) + // .Enrich.FromLogContext() + // .WriteTo.Async(c => c.File("Logs/logs.txt",rollingInterval:RollingInterval.Day)) + // .WriteTo.Async(c => c.Console()) + // .CreateLogger(); try { diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Win_in.Sfs.Scp.WebApi.HttpApi.Host.csproj b/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Win_in.Sfs.Scp.WebApi.HttpApi.Host.csproj index 87a1dc1..1d960b5 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Win_in.Sfs.Scp.WebApi.HttpApi.Host.csproj +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Win_in.Sfs.Scp.WebApi.HttpApi.Host.csproj @@ -7,8 +7,8 @@ Win_in.Sfs.Scp.WebApi true Win_in.Sfs.Scp.WebApi-4681b4fd-151f-4221-84a4-929d86723e4c - 1.22.0525.1 - 1.22.0525.1 + 1.22.0601.1 + 1.22.0601.1