tcp日志整理

master
wangyueyang 2 months ago
parent d77a9ee295
commit 362c38834a

@ -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<IBaseHandler, Decoder, Encoder>
Log.Info($"padar connect succeed");
return Connected;
}
public override ILog Logger()
{
return Log;
}
/// <summary>
/// 0-关闭雷达 1-开启

@ -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<IBaseHandler, Decoder, Encoder>
DisassembleDone = false;
SwapStart = false;
}
public override ILog Logger()
{
return Log();
}
private ILog Log()
{
var name = "Plc" + this.Sn;

Loading…
Cancel
Save