public void LogException(Exception ex) { ControlPanel.Service.SystemEventLogService logService = new ControlPanel.Service.SystemEventLogService(); logService.InsertSystemEventLog(ex.Message, ex.StackTrace, Enums.EventCodes.Error); if (ex.InnerException != null) { LogException(ex.InnerException); } }
public void LogException(Exception ex) { ControlPanel.Service.SystemEventLogService logService = new ControlPanel.Service.SystemEventLogService(); logService.InsertSystemEventLog(ex.Message, ex.StackTrace, Enums.EventCodes.Error); if (ex.InnerException != null) LogException(ex.InnerException); }