/// <summary> /// Сохранить лог Exception /// </summary> /// <param name="ex"></param> /// <returns></returns> public static void SaveError(this Exception ex) { if (ex.InnerException != null) { SaveError(ex.InnerException); } EventLogs.SaveError(GetErrorMessage(ex)); }
/// <summary> /// Сохранить лог Exception /// </summary> /// <param name="ex"></param> /// <param name="id_services"></param> /// <param name="id_eventID"></param> /// <returns></returns> public static void SaveError(this Exception ex, int?id_services, int?id_eventID) { if (ex.InnerException != null) { SaveError(ex.InnerException, id_services, id_eventID); } EventLogs.SaveError(GetErrorMessage(ex), id_services, id_eventID); }
/// <summary> /// Сохранить лог Exception /// </summary> /// <param name="ex"></param> /// <param name="user_message"></param> /// <returns></returns> public static void SaveError(this Exception ex, string user_message) { if (ex.InnerException != null) { SaveError(ex.InnerException, user_message); } EventLogs.SaveError(GetErrorMessage(ex, user_message)); }
public static void SaveErrorToEventLogs(this string log) { EventLogs.SaveError(log); }
public static void SaveErrorToEventLogs(this Exception ex) { EventLogs.SaveError(ex); }
public static void SaveErrorToEventLogs(this Exception ex, string user_message) { EventLogs.SaveError(ex, user_message); }
public static void SaveErrorToEventLogs(this Exception ex, service service, eventID eventID) { EventLogs.SaveError(ex, (service == service.Null ? (int?)null : (int)service), (eventID == eventID.Null ? (int?)null : (int)eventID)); }
public static void SaveErrorToEventLogs(this string log, service service, eventID eventID) { EventLogs.SaveError(log, (service == service.Null ? (int?)null : (int)service), (eventID == eventID.Null ? (int?)null : (int)eventID)); }