コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
 }