コード例 #1
0
        public Guid AddHeadlinedOutput(string headLine, TextOutputManager newOutputWriter, LoggingLevel newLevel = LoggingLevel.Standard, LoggingMode newMode = LoggingMode.Minimum)
        {
            Guid result = AddOutput(newOutputWriter, newLevel, newMode);

            Header(result, headLine);
            return(result);
        }
コード例 #2
0
        public Guid AddOutput(TextOutputManager newOutputWriter, LoggingLevel newLevel = LoggingLevel.Standard, LoggingMode newMode = LoggingMode.Minimum)
        {
            output newOutput = new output(this, Foundation.TimeStamp, newOutputWriter, newLevel, newMode);

            outputs.Add(newOutput);
            return(newOutput.Identifier);
        }
コード例 #3
0
            }             // EXPLICTLY FORBID USE OF THE DEFAULT CONSTRUCTOR

            public output(HtmlLogSystem parent, string title, TextOutputManager newOutputWriter, LoggingLevel newLevel, LoggingMode newMode)
            {
                OutputWebInterface.Title     = title;
                OutputWebInterface.CssStyles = parent.HtmlStyle;

                OutputWriter = newOutputWriter;
                OutputLevel  = newLevel;
                OutputMode   = newMode;

                OutputWriter.WriteLine(OutputWebInterface.HtmlHeader);
            }
コード例 #4
0
        public void ToFile(string completeFilePath, bool append = true)
        {
            TextOutputManager thisOutputManager = new TextOutputManager(completeFilePath, append);

            thisOutputManager.WriteLine(LineOut(headers));

            foreach (List <T> thisData in data)
            {
                thisOutputManager.WriteLine(LineOut(thisData));
            }

            thisOutputManager.Close();
        }