From 3991de91ef4bfc5d802427519506e2f33194ff66 Mon Sep 17 00:00:00 2001 From: SoulStar Date: Wed, 31 Jul 2024 09:46:50 +0800 Subject: [PATCH] =?UTF-8?q?debug=20-=20=E8=A7=A3=E5=86=B3=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E9=97=AE=E9=A2=98=20=E7=89=88=E6=9C=AC=E5=8F=AF?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HighWayIot.Log4net/LogHelper.cs | 2 +- RFIDSocket/Program.cs | 1 - RFIDSocket/RFIDLog.cs | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/HighWayIot.Log4net/LogHelper.cs b/HighWayIot.Log4net/LogHelper.cs index efb5e3b..166136e 100644 --- a/HighWayIot.Log4net/LogHelper.cs +++ b/HighWayIot.Log4net/LogHelper.cs @@ -32,7 +32,7 @@ namespace HighWayIot.Log4net * */ //private readonly string fileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "log4net.config"); - private readonly string fileName = "D:\\Code\\Work\\RFIDAccess\\HighWayIot.Log4net\\config\\log4net.config"; + private readonly string fileName = Environment.CurrentDirectory + @"\config\log4net.config"; private LogHelper() { diff --git a/RFIDSocket/Program.cs b/RFIDSocket/Program.cs index a0d60b1..9b5df09 100644 --- a/RFIDSocket/Program.cs +++ b/RFIDSocket/Program.cs @@ -22,7 +22,6 @@ namespace RFIDSocket Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); logger.Info("初始化启动"); - Application.Run(new RFIDSocket()); } } diff --git a/RFIDSocket/RFIDLog.cs b/RFIDSocket/RFIDLog.cs index c80f6bb..9cc2db2 100644 --- a/RFIDSocket/RFIDLog.cs +++ b/RFIDSocket/RFIDLog.cs @@ -92,10 +92,10 @@ namespace RFIDSocket LogControl.LogReadKindSelect( LogControl.LogDeviceNoSelect( LogControl.LogContentSelect(rFIDContents, - Content.Text), - no), + Content.Text), + no), ReadKind.Text), - StartTime.Value, EndTime.Value); + StartTime.Value, EndTime.Value); } } }