/// <summary> /// /// </summary> /// <param name="ex"></param> /// <returns></returns> public TraceEventType GetExceptionLogEventType(Exception ex) { Type type = ex.GetType(); string name = type.FullName; ExceptionLogElement elt = ExceptionLogs.GetElement(name); if (elt == null) { name = type.Name; elt = ExceptionLogs.GetElement(name); } TraceEventType eventType = elt == null ? this.DefaultLogEventType : elt.LogEventType; return(eventType); }