完善海康 SDK 日志
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user