debug - 解决日志问题 版本可用

dep
SoulStar 7 months ago
parent 84834015a6
commit 3991de91ef

@ -32,7 +32,7 @@ namespace HighWayIot.Log4net
* *
*/ */
//private readonly string fileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "log4net.config"); //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() private LogHelper()
{ {

@ -22,7 +22,6 @@ namespace RFIDSocket
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
logger.Info("初始化启动"); logger.Info("初始化启动");
Application.Run(new RFIDSocket()); Application.Run(new RFIDSocket());
} }
} }

@ -92,10 +92,10 @@ namespace RFIDSocket
LogControl.LogReadKindSelect( LogControl.LogReadKindSelect(
LogControl.LogDeviceNoSelect( LogControl.LogDeviceNoSelect(
LogControl.LogContentSelect(rFIDContents, LogControl.LogContentSelect(rFIDContents,
Content.Text), Content.Text),
no), no),
ReadKind.Text), ReadKind.Text),
StartTime.Value, EndTime.Value); StartTime.Value, EndTime.Value);
} }
} }
} }

Loading…
Cancel
Save