From 89f4a8ecbd8f15bdb469653d27b723d5cbf9ccb8 Mon Sep 17 00:00:00 2001 From: CZ Date: Wed, 14 Aug 2024 09:40:28 +0800 Subject: [PATCH] =?UTF-8?q?PLC=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Plc/Codec/Decoder.cs | 3 ++- WebStarter/log4net.config | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Service/Plc/Codec/Decoder.cs b/Service/Plc/Codec/Decoder.cs index 1fb559d..ef8dd62 100644 --- a/Service/Plc/Codec/Decoder.cs +++ b/Service/Plc/Codec/Decoder.cs @@ -28,7 +28,8 @@ public class Decoder : ByteToMessageDecoder { if (ObjUtils.IsNotNullOrWhiteSpace(chargerSn)) { - return LogManager.GetLogger("Plc" + chargerSn); + //return LogManager.GetLogger("Plc" + chargerSn); + return LogManager.GetLogger("Plc"); } return LogManager.GetLogger(typeof(Decoder)); diff --git a/WebStarter/log4net.config b/WebStarter/log4net.config index 81a7df1..7217fa8 100644 --- a/WebStarter/log4net.config +++ b/WebStarter/log4net.config @@ -30,7 +30,7 @@ - +