This commit is contained in:
fuenmao
2026-10-09 16:46:30 +08:00
parent 4a634ef4c2
commit e6b90a06ab
63 changed files with 4170 additions and 1518 deletions
+3 -1
View File
@@ -13,7 +13,9 @@ public class WebComponent : IWebComponent
// 设置日志过滤
builder.Logging.AddFilter((provider, category, logLevel) =>
{
return !new[] { "Microsoft.Hosting", "Microsoft.AspNetCore" }.Any(u => category.StartsWith(u)) && logLevel >= LogLevel.Information;
var frameworkNoise = new[] { "Microsoft.Hosting", "Microsoft.AspNetCore" }
.Any(prefix => category?.StartsWith(prefix, StringComparison.Ordinal) == true);
return logLevel >= LogLevel.Warning || (!frameworkNoise && logLevel >= LogLevel.Information);
});
// 设置接口超时时间和上传大小-Kestrel