日志补全
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 模块
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace SHH.CameraService;
|
||||
/// </summary>
|
||||
public class DeviceConfigHandler : ICommandHandler
|
||||
{
|
||||
private static ILogger _sysLog = Log.ForContext("SourceContext", LogModules.Core);
|
||||
private ILogger _sysLog = Log.ForContext("SourceContext", LogModules.Core);
|
||||
|
||||
private readonly CameraManager _cameraManager;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace SHH.CameraService;
|
||||
/// </summary>
|
||||
public class DeviceStatusHandler : BackgroundService
|
||||
{
|
||||
private static ILogger _gRpcLog = Log.ForContext("SourceContext", LogModules.gRpc);
|
||||
private ILogger _gRpcLog = Log.ForContext("SourceContext", LogModules.gRpc);
|
||||
|
||||
private readonly CameraManager _manager;
|
||||
private readonly ServiceConfig _config;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace SHH.CameraService
|
||||
/// </summary>
|
||||
public class RemoveCameraHandler : ICommandHandler
|
||||
{
|
||||
private static ILogger _sysLog = Log.ForContext("SourceContext", LogModules.Core);
|
||||
private ILogger _sysLog = Log.ForContext("SourceContext", LogModules.Core);
|
||||
|
||||
private readonly CameraManager _cameraManager;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace SHH.CameraService;
|
||||
/// </summary>
|
||||
public class ImageMonitorController : BackgroundService
|
||||
{
|
||||
private static ILogger _sysLog = Log.ForContext("SourceContext", LogModules.Core);
|
||||
private ILogger _sysLog = Log.ForContext("SourceContext", LogModules.Core);
|
||||
|
||||
// 注入所有注册的目标(云端、大屏等),实现动态分发
|
||||
private readonly IEnumerable<StreamTarget> _targets;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace SHH.CameraService;
|
||||
/// </summary>
|
||||
public class GrpcSenderWorker : BackgroundService
|
||||
{
|
||||
private static ILogger _gRpcLog = Log.ForContext("SourceContext", LogModules.gRpc);
|
||||
private ILogger _gRpcLog = Log.ForContext("SourceContext", LogModules.gRpc);
|
||||
|
||||
private readonly StreamTarget _target;
|
||||
private readonly string _grpcUrl;
|
||||
|
||||
Reference in New Issue
Block a user