public void LogFiles(string error, string date, string errorMessage)
 {
     foreach (var appender in Appenders)
     {
         appender.Layout.GetStrings(error,
                                    date, errorMessage);
         int errorTreshold = DicThreshold.CheckThreshold(error);
         appender.Append(errorTreshold);
     }
 }
 public ConsoleAppender(ILayout layout, string type)
 {
     this.Layout = layout;
     typeResult  = DicThreshold.CheckThreshold(type);
 }