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; } }
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; } }
/// <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; } }