static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { string log = "ERROR:" + e.ToString(); CommonUtils.saveLog(log); }
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { string log = "ERROR:" + e.ExceptionObject.ToString(); CommonUtils.saveLog(log); }