private static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { _appLog.Write(LogType.Error, "[Application error]\r\n" + "Source: " + sender + "\r\n" + "Exception: " + e.Exception); }
private static void XObjectManager_OnError(object source, Exception error) { _xmlLog.Write(LogType.Error, "[Xml error]\r\n" + "Source: " + source + "\r\n" + "Exception: " + error); }