private void FindAttributes() { _reportList.Add(new ReportMessageOnly(SalConfigFile, "SALT Config Tester", 2)); TestSalConfiguration(SalConfigFile); TestSaltConfiguration(SaltConfigFile); ReportOutput.Run(_reportList, LogFile); }
public override string ToLog() { string returnStr = null; returnStr += "\"" + ReportOutput.ReportTypeStr(ReportType) + "\","; returnStr += "\"" + AttributeName + "\","; returnStr += "\"" + Value + "\","; returnStr += "\"" + MessageLog + "\","; return(returnStr); }
public ReportAttributeStatus(ReportType reportType, string targetFile, string attributeName, string value, string message, int numPageFeeds) { ReportType = reportType; Path = targetFile; AttributeName = attributeName; Value = value; if (message.ToLower() == "found") { MessageConsole = attributeName + ": " + ReportOutput.CreatePadding(attributeName) + value; MessageLog = attributeName + ": " + value; } else { MessageConsole = attributeName + " " + message + " in file: " + targetFile; MessageLog = attributeName + " " + message + " in file: " + targetFile; } NumPageFeeds = numPageFeeds; }