diff --git a/Common/lib/HybirdFrameworkDriver.dll b/Common/lib/HybirdFrameworkDriver.dll index 5f9fa0f..eeedaf3 100644 Binary files a/Common/lib/HybirdFrameworkDriver.dll and b/Common/lib/HybirdFrameworkDriver.dll differ diff --git a/Service/Padar/Client/PadarClient.cs b/Service/Padar/Client/PadarClient.cs index 1ed3f16..03ae3c4 100644 --- a/Service/Padar/Client/PadarClient.cs +++ b/Service/Padar/Client/PadarClient.cs @@ -1,8 +1,7 @@ -using System.Text; using HybirdFrameworkCore.Autofac.Attribute; using HybirdFrameworkCore.Entity; -using log4net; using HybirdFrameworkDriver.TcpClient; +using log4net; using Decoder = Service.Padar.Codec.Decoder; using Encoder = Service.Padar.Codec.Encoder; @@ -29,6 +28,11 @@ public class PadarClient : TcpClient Log.Info($"padar connect succeed"); return Connected; } + + public override ILog Logger() + { + return Log; + } /// /// 0-关闭雷达 1-开启 diff --git a/Service/Plc/Client/PlcClient.cs b/Service/Plc/Client/PlcClient.cs index f31bbcc..4aa98f9 100644 --- a/Service/Plc/Client/PlcClient.cs +++ b/Service/Plc/Client/PlcClient.cs @@ -1,4 +1,4 @@ -using HybirdFrameworkCore.Autofac.Attribute; +using HybirdFrameworkCore.Autofac.Attribute; using HybirdFrameworkCore.Entity; using HybirdFrameworkDriver.Session; using HybirdFrameworkDriver.TcpClient; @@ -342,6 +342,11 @@ public class PlcClient : TcpClient DisassembleDone = false; SwapStart = false; } + + public override ILog Logger() + { + return Log(); + } private ILog Log() { var name = "Plc" + this.Sn;