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

            returnStr += "\"" + ReportOutput.ReportTypeStr(ReportType) + "\",";
            returnStr += "\"" + AttributeName + "\",";
            returnStr += "\"" + Value + "\",";
            returnStr += "\"" + MessageLog + "\",";
            return(returnStr);
        }
コード例 #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;
        }