From e3c451cd926ba2234ed30d0df0140ccc90a18095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89=E9=B8=AD=E8=9B=8B?= Date: Sun, 1 Mar 2026 01:59:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=86=8D=E7=BF=BB=E8=AF=91=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BetterGenshinImpact/App.xaml.cs | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/BetterGenshinImpact/App.xaml.cs b/BetterGenshinImpact/App.xaml.cs index 92bdc3f2..a327e0d2 100644 --- a/BetterGenshinImpact/App.xaml.cs +++ b/BetterGenshinImpact/App.xaml.cs @@ -89,21 +89,22 @@ public partial class App : Application services.AddSingleton(); services.AddSingleton(); - if ("zh-Hans".Equals(all.OtherConfig.UiCultureInfoName, StringComparison.OrdinalIgnoreCase)) - { - services.AddLogging(c => c.AddSerilog()); - } - else - { - services.AddLogging(logging => - { - logging.ClearProviders(); - logging.SetMinimumLevel(LogLevel.Debug); - logging.AddFilter("Microsoft", LogLevel.Warning); - logging.AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Warning); - logging.Services.AddSingleton(); - }); - } + services.AddLogging(c => c.AddSerilog()); + // if ("zh-Hans".Equals(all.OtherConfig.UiCultureInfoName, StringComparison.OrdinalIgnoreCase)) + // { + // services.AddLogging(c => c.AddSerilog()); + // } + // else + // { + // services.AddLogging(logging => + // { + // logging.ClearProviders(); + // logging.SetMinimumLevel(LogLevel.Debug); + // logging.AddFilter("Microsoft", LogLevel.Warning); + // logging.AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Warning); + // logging.Services.AddSingleton(); + // }); + // } services.AddLocalization();