diff --git a/DM_Weight/App.config b/DM_Weight/App.config index e8b74b7..8c2e57e 100644 --- a/DM_Weight/App.config +++ b/DM_Weight/App.config @@ -99,7 +99,7 @@ - + diff --git a/DM_Weight/App.xaml.cs b/DM_Weight/App.xaml.cs index 3c8d840..081ea18 100644 --- a/DM_Weight/App.xaml.cs +++ b/DM_Weight/App.xaml.cs @@ -26,6 +26,7 @@ using System.Timers; using DM_Weight.HIKVISION; using System.Diagnostics; using System.Runtime.InteropServices; +using log4net.Repository.Hierarchy; namespace DM_Weight { @@ -284,9 +285,11 @@ namespace DM_Weight { //获取欲启动程序名 string processName = System.Diagnostics.Process.GetCurrentProcess().ProcessName; + logger.Info($"欲启动程序名:{processName}"); //检查程序是否已经启动,已经启动则显示提示退出程序 if (System.Diagnostics.Process.GetProcessesByName(processName).Length > 1) { + logger.Info($"系统在运行!"); //系统在运行 RaiseOtherProcess(); Application.Current.Shutdown();