/// <summary> /// Initializes a new instance of the <see cref="EventException"/> class. /// </summary> /// <param name="eventVO"> /// The event vo. /// </param> /// <param name="ex"> /// The excetion /// </param> public EventException(EventVO eventVO, Exception ex) : base(eventVO.Title, ex) { this.Details = eventVO.Details; this.StoreId = eventVO.StoreId; this.AppName = eventVO.AppName; this.LogType = eventVO.LogType; }
/// <summary> /// Initializes a new instance of the <see cref="EventException"/> class. /// </summary> /// <param name="eventlog"> /// The eventlog. /// </param> public EventException(EventVO eventlog) : base(eventlog.Title) { this.Details = eventlog.Details; this.StoreId = eventlog.StoreId; this.AppName = eventlog.AppName; this.LogType = eventlog.LogType; }
/// <summary> /// Registra um evento /// </summary> /// <param name="eventVO"> /// The event VO. /// </param> public void LogEvent(EventVO eventVO) { throw new NotImplementedException(); }
/// <summary> /// Registra um evento /// </summary> /// <param name="eventVO"> /// The event VO. /// </param> public void LogEvent(EventVO eventVO) { }
/// <summary> /// Registra um evento /// </summary> /// <param name="eventVO"> /// The event VO. /// </param> public void LogEvent(EventVO eventVO) { // Encadeamento if (!this.IsChild && threadChain != null) { foreach (var childLogger in threadChain) { childLogger.LogEvent(eventVO); } } if (!this.IsChild && staticChain != null) { foreach (var childLogger in staticChain) { childLogger.LogEvent(eventVO); } } var exception = new EventException(eventVO); this.elmah.Log(new Error(exception)); }