完善海康 SDK 日志

This commit is contained in:
2026-01-16 17:45:27 +08:00
parent 0b374121f3
commit 97a322960a
6 changed files with 167 additions and 37 deletions

View File

@@ -62,14 +62,6 @@ public static class Bootstrapper
MaxRetentionDays = 10,
FileSizeLimitBytes = 1024L * 1024 * 1024,
// 动态设置日志级别
ModuleLevels = new Dictionary<string, Serilog.Events.LogEventLevel>
{
// 确保 Core 模块在调试时能输出 Debug在生产时输出 Info
{ LogModules.Core, isDebugArgs ? Serilog.Events.LogEventLevel.Debug : Serilog.Events.LogEventLevel.Information },
{ LogModules.Network, Serilog.Events.LogEventLevel.Warning }
}
};
LogBootstrapper.Init(ops);