增加PLC数据的日志记录

This commit is contained in:
liming 蔡
2026-08-14 19:28:16 +08:00
parent a17a969f25
commit 508647ecca
7 changed files with 61 additions and 1 deletions
+3
View File
@@ -5,6 +5,9 @@ namespace JY.Inspection
{
internal class Log4Helper
{
// 通过名称获取专属的 PLC Logger
private static readonly ILog plcLog = LogManager.GetLogger("PlcDataLogger");
public static void WriteLog(Type t, Exception ex)
{
ILog log = LogManager.GetLogger(t);