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); } } }