@ -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()
{
@ -22,7 +22,6 @@ namespace RFIDSocket
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
logger.Info("初始化启动");
Application.Run(new RFIDSocket());
}
@ -92,10 +92,10 @@ namespace RFIDSocket
LogControl.LogReadKindSelect(
LogControl.LogDeviceNoSelect(
LogControl.LogContentSelect(rFIDContents,
Content.Text),
no),
ReadKind.Text),
StartTime.Value, EndTime.Value);