/// <summary> Adds an error report.</summary> /// <param name="level"> The level. </param> /// <param name="source"> Source for the. </param> /// <param name="description"> The description. </param> /// <param name="detail"> (Optional) the detail. </param> /// <param name="ex"> (Optional) the ex. </param> public void AddErrorReport(FcLogLevel level, string source, string description, string detail = null, Exception ex = null) { //Debugger.Break(); this.Reports.Add(new ExportReport() { //TODO commented to be compiled FIX Filip!!! //Level = level, //Source = source, Description = description, Detail = detail, Exception = ex, //FrameNumbers = this.ExportedEmail.FrameNumbers != null ? this.ExportedEmail.FrameNumbers.ToArray() : null //FrameNumbers = new uint[] { 1084,1085} }); }
//todo fix to L7PDU public static ReportLevel ReportLevelConv(FcLogLevel level) { switch (level) { case FcLogLevel.Debug: return(ReportLevel.Debug); case FcLogLevel.Info: return(ReportLevel.Info); case FcLogLevel.Warn: return(ReportLevel.Warn); case FcLogLevel.Error: return(ReportLevel.Error); case FcLogLevel.Fatal: return(ReportLevel.Fatal); } return(ReportLevel.Debug); }