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 = "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());
}
}

Loading…
Cancel
Save