Beispiel #1
0
 private void FindAttributes()
 {
     _reportList.Add(new ReportMessageOnly(SalConfigFile, "SALT Config Tester", 2));
     TestSalConfiguration(SalConfigFile);
     TestSaltConfiguration(SaltConfigFile);
     ReportOutput.Run(_reportList, LogFile);
 }
Beispiel #2
0
        public override string ToLog()
        {
            string returnStr = null;

            returnStr += "\"" + ReportOutput.ReportTypeStr(ReportType) + "\",";
            returnStr += "\"" + AttributeName + "\",";
            returnStr += "\"" + Value + "\",";
            returnStr += "\"" + MessageLog + "\",";
            return(returnStr);
        }
Beispiel #3
0
        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;
        }