From dd66ebae6eeef8eaa6d123ca994145e8c1c145fb Mon Sep 17 00:00:00 2001 From: Hanpaopao <510423039@qq.com> Date: Wed, 16 Apr 2025 19:34:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../services/host/Lion.AbpPro.HttpApi.Host/Program.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Program.cs b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Program.cs index 70803a76..18af11e0 100644 --- a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Program.cs +++ b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Program.cs @@ -18,17 +18,6 @@ public class Program .UseAutofac() .UseSerilog((context, loggerConfiguration) => { - 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")) - .WriteTo.Async(c => c.Console()); SerilogToEsExtensions.SetSerilogConfiguration( loggerConfiguration, context.Configuration);