void ApplyRowLevelStyle(LogEventLevel level, TabSectionRow row)
        {
            switch (level)
            {
            case LogEventLevel.Verbose:
                row.Quiet();
                break;

            /*case LogEventLevel.Debug:
             *  // Default style, black text
             *  break;*/
            case LogEventLevel.Information:
                row.Info();
                break;

            case LogEventLevel.Warning:
                row.Warn();
                break;

            case LogEventLevel.Error:
                row.Error();
                break;

            case LogEventLevel.Fatal:
                row.Fail();
                break;
            }
        }
Beispiel #2
0
 void ApplyRowLevelStyle(LogEventLevel level, TabSectionRow row)
 {
     switch (level)
     {
         case LogEventLevel.Debug:
             row.Sub();
             break;
         case LogEventLevel.Warning:
             row.Warn();
             break;
         case LogEventLevel.Error:
             row.Error();
             break;
         case LogEventLevel.Fatal:
             row.Fail();
             break;
     }
 }
Beispiel #3
0
        void ApplyRowLevelStyle(LogEventLevel level, TabSectionRow row)
        {
            switch (level)
            {
            case LogEventLevel.Debug:
                row.Sub();
                break;

            case LogEventLevel.Warning:
                row.Warn();
                break;

            case LogEventLevel.Error:
                row.Error();
                break;

            case LogEventLevel.Fatal:
                row.Fail();
                break;
            }
        }
 void ApplyRowLevelStyle(LogEventLevel level, TabSectionRow row)
 {
     switch (level)
     {
         case LogEventLevel.Verbose:
             row.Quiet();
             break;
         /*case LogEventLevel.Debug:
             // Default style, black text
             break;*/
         case LogEventLevel.Information:
             row.Info();
             break;
         case LogEventLevel.Warning:
             row.Warn();
             break;
         case LogEventLevel.Error:
             row.Error();
             break;
         case LogEventLevel.Fatal:
             row.Fail();
             break;
     }
 }
Beispiel #5
0
 public TabRowShould()
 {
     SectionRow = new TabSectionRow();
 }
 /// <summary>
 /// Sets the indicator for a row, depending of the entry type;
 /// </summary>
 /// <param name="row"></param>
 /// <param name="entryType"></param>
 private static void SetIndicator(TabSectionRow row, EventLogEntryType entryType)
 {
     switch (entryType)
     {
         case EventLogEntryType.Error:
             row.Error();
             break;
         case EventLogEntryType.FailureAudit:
             row.Fail();
             break;
         case EventLogEntryType.Information:
             row.Info();
             break;
         case EventLogEntryType.SuccessAudit:
             row.Info();
             break;
         case EventLogEntryType.Warning:
             row.Warn();
             break;
         default:
             break;
     }
 }
		public TabRowFormattingExtensionsShould()
		{
			SectionRow = new TabSectionRow().Column("Text");
		}
 public TabRowFormattingExtensionsShould()
 {
     SectionRow = new TabSectionRow().Column("Text");
 }
Beispiel #9
0
 public TabSectionRow AddRow()
 {
     var row = new TabSectionRow();
     rows.Add(row);
     return row;
 }
Beispiel #10
0
		public TabRowShould()
		{
			SectionRow = new TabSectionRow();
		}