Exemplo n.º 1
0
 private static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
 {
     LogHelper.LogError("应用程序未处理异常", e.Exception);
 }
Exemplo n.º 2
0
 private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     LogHelper.LogError("应用程序未处理异常", e.ExceptionObject as Exception);
 }