tcp日志整理

master
wangyueyang 2 months ago
parent d77a9ee295
commit 362c38834a

@ -1,8 +1,7 @@
using System.Text;
using HybirdFrameworkCore.Autofac.Attribute; using HybirdFrameworkCore.Autofac.Attribute;
using HybirdFrameworkCore.Entity; using HybirdFrameworkCore.Entity;
using log4net;
using HybirdFrameworkDriver.TcpClient; using HybirdFrameworkDriver.TcpClient;
using log4net;
using Decoder = Service.Padar.Codec.Decoder; using Decoder = Service.Padar.Codec.Decoder;
using Encoder = Service.Padar.Codec.Encoder; using Encoder = Service.Padar.Codec.Encoder;
@ -30,6 +29,11 @@ public class PadarClient : TcpClient<IBaseHandler, Decoder, Encoder>
return Connected; return Connected;
} }
public override ILog Logger()
{
return Log;
}
/// <summary> /// <summary>
/// 0-关闭雷达 1-开启 /// 0-关闭雷达 1-开启
/// </summary> /// </summary>

@ -1,4 +1,4 @@
using HybirdFrameworkCore.Autofac.Attribute; using HybirdFrameworkCore.Autofac.Attribute;
using HybirdFrameworkCore.Entity; using HybirdFrameworkCore.Entity;
using HybirdFrameworkDriver.Session; using HybirdFrameworkDriver.Session;
using HybirdFrameworkDriver.TcpClient; using HybirdFrameworkDriver.TcpClient;
@ -342,6 +342,11 @@ public class PlcClient : TcpClient<IBaseHandler, Decoder, Encoder>
DisassembleDone = false; DisassembleDone = false;
SwapStart = false; SwapStart = false;
} }
public override ILog Logger()
{
return Log();
}
private ILog Log() private ILog Log()
{ {
var name = "Plc" + this.Sn; var name = "Plc" + this.Sn;

Loading…
Cancel
Save