Example #1
0
 public LogMessage(String message, LogMessageCategory category)
 {
     logId = 0;
     this.message = message;
     this.category = category;
     category.addMessage(this);
     time = DateTime.Now;
 }
Example #2
0
 public void addCategory(LogMessageCategory category)
 {
     
     categories.Add(category);
 }
Example #3
0
        private void createCategories()
        {
            LogMessageCategory systemInfo = new LogMessageCategory("System Info");
            LogMessageCategory errors = new LogMessageCategory("Errors");
            LogMessageCategory encodes = new LogMessageCategory("Video");
            LogMessageCategory debug = new LogMessageCategory("Debug");

            categories.Add(LogMessageCategories.Info, systemInfo);
            categories.Add(LogMessageCategories.Error, errors);
            categories.Add(LogMessageCategories.Video, encodes);
            categories.Add(LogMessageCategories.Debug, debug);


            logbook.addCategory(systemInfo);
            logbook.addCategory(errors);
            logbook.addCategory(encodes);
            logbook.addCategory(debug);
        }
Example #4
0
 public void addSubCategory(LogMessageCategory category)
 {
     subCategories.Add(category);
 }