master
CZ 3 months ago
parent 697badff7c
commit 89f4a8ecbd

@ -28,7 +28,8 @@ public class Decoder : ByteToMessageDecoder
{ {
if (ObjUtils.IsNotNullOrWhiteSpace(chargerSn)) if (ObjUtils.IsNotNullOrWhiteSpace(chargerSn))
{ {
return LogManager.GetLogger("Plc" + chargerSn); //return LogManager.GetLogger("Plc" + chargerSn);
return LogManager.GetLogger("Plc");
} }
return LogManager.GetLogger(typeof(Decoder)); return LogManager.GetLogger(typeof(Decoder));

@ -30,7 +30,7 @@
<appender-ref ref="RollingFile"/> <appender-ref ref="RollingFile"/>
</root> </root>
<logger name="PlcApi" additivity="false"> <logger name="Plc" additivity="false">
<level value="ALL" /> <level value="ALL" />
<appender-ref ref="Plc" /> <appender-ref ref="Plc" />
</logger> </logger>

Loading…
Cancel
Save