From 9300f5756d2bed8eabd5ad091cda539fc54d5b7b Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 19 Aug 2025 16:20:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=BE=E7=AE=80=E6=97=A5=E5=BF=97=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.API/_ServiceExtensions/SerilogSetup.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IRaCIS.Core.API/_ServiceExtensions/SerilogSetup.cs b/IRaCIS.Core.API/_ServiceExtensions/SerilogSetup.cs index 00cef4889..ec61c143c 100644 --- a/IRaCIS.Core.API/_ServiceExtensions/SerilogSetup.cs +++ b/IRaCIS.Core.API/_ServiceExtensions/SerilogSetup.cs @@ -22,6 +22,9 @@ namespace IRaCIS.Core.API var config = new LoggerConfiguration() .MinimumLevel.Information() .MinimumLevel.Override("Microsoft", LogEventLevel.Information) + .MinimumLevel.Override("MassTransit", LogEventLevel.Warning) + //https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Logging.md + .MinimumLevel.Override("ZiggyCreatures.Caching.Fusion", LogEventLevel.Warning) // Filter out ASP.NET Core infrastructre logs that are Information and below 日志太多了 一个请求 记录好几条 .MinimumLevel.Override("Microsoft.AspNetCore", LogEventLevel.Warning) .MinimumLevel.Override("Microsoft.AspNetCore.Hosting", LogEventLevel.Warning)