日志补全

This commit is contained in:
2026-01-16 15:17:23 +08:00
parent fd6a82eb4e
commit 0b374121f3
17 changed files with 52 additions and 30 deletions

View File

@@ -11,7 +11,7 @@ namespace SHH.CameraService;
/// </summary>
public class CommandDispatcher
{
private static ILogger _gRpcLog = Log.ForContext("SourceContext", LogModules.gRpc);
private ILogger _gRpcLog = Log.ForContext("SourceContext", LogModules.gRpc);
private readonly Dictionary<string, ICommandHandler> _handlers;
/// <summary>

View File

@@ -14,7 +14,7 @@ public class ParentProcessSentinel : BackgroundService
{
private readonly ServiceConfig _config;
private readonly IHostApplicationLifetime _lifetime;
private static ILogger _sysLog = Log.ForContext("SourceContext", LogModules.Core);
private ILogger _sysLog = Log.ForContext("SourceContext", LogModules.Core);
/// <summary>
/// 使用统一的结构化日志记录器SourceContext 设置为 Core 模块