void Object_DebugReport(object sender, DebugReportEventArgs e) { bool logReport = false; if (e.Severity < 10) { if (Settings.Default.DebugAdvanced) { logReport = true; } } if (e.Severity >= 10) { logReport = true; } if (logReport) { Functions.WriteLineToLogFile(e.DebugText); if (e.ThrownException != null) { Functions.WriteExceptionToLogFile(e.ThrownException); } } }
static void tempMCData_DebugReport(object sender, DebugReportEventArgs e) { // Copied from errorhandler bool logReport = false; if (e.Severity < 10) { if (Settings.Default.DebugAdvanced) { logReport = true; } } if (e.Severity >= 10) { logReport = true; } if (logReport) { Functions.WriteLineToLogFile(e.DebugText); if (e.ThrownException != null) { Functions.WriteExceptionToLogFile(e.ThrownException); } } }
// Debug #region Debug // Events raised by provider static void epg_DebugReport(object sender, DebugReportEventArgs e) { if (EPGDebugReport != null) { EPGDebugReport(new object(), e); } }
void RecTV_DebugReport(object sender, DebugReportEventArgs e) { if (!Settings.Default.DebugRecTV) { return; } Functions.WriteLineToLogFile(e.DebugText); if (e.ThrownException != null) { Functions.WriteExceptionToLogFile(e.ThrownException); } }