public static void AddNewMonitor(string subjectType, string subjectId, string errorMessage, string operationUser, string operationName, MonitorLevel level = MonitorLevel.Info, MonitorModule module = MonitorModule.Other) { try { Manager.AddMonitorInfo(subjectType, subjectId, errorMessage, operationUser, operationName, level, module); } catch (Exception ex) { var exception = new MonitorException(BizErrorCode.SystemError, "添加异常监控错误", ex); Logger.Log(Level.Error, "Error occurred in AddNewMonitor.", exception); } }
public void AddMonitorInfo(string subjectType, string subjectId, string errorMessage, string operationUser, string operationName, MonitorLevel level = MonitorLevel.Info, MonitorModule module = MonitorModule.Other) { try { handler.AddMonitorInfo(subjectType, subjectId, errorMessage, operationUser, operationName, level, module); } catch (Exception innerEx) { var exception = new MonitorException(BizErrorCode.SystemError, "查询异常订单错误", innerEx); Logger.Log(Level.Error, "Error occurred in GetExceptionOrders.", exception); throw exception; } }