public static void TestLevels(this ConsoleControl.ConsoleControl cons) { cons.TestLevel(L4j.Info); cons.TestLevel(L4j.Debug); cons.TestLevel(L4j.Trace); cons.TestLevel(L4j.Warn); cons.TestLevel(L4j.Trace); cons.TestLevel(L4j.Error); cons.TestLevel(L4j.Trace); cons.TestLevel(L4j.Info); cons.BlankLine(); cons.TestLevel(L4j.Info); cons.TestLevel(L4j.Trace); cons.TestLevel(L4j.Trace); cons.TestLevel(L4j.Warn); cons.TestLevel(L4j.Trace); cons.TestLevel(L4j.Trace); cons.TestLevel(L4j.Info); cons.BlankLine(); cons.TestLevel(L4j.Info); cons.TestLevel(L4j.Debug); cons.TestLevel(L4j.Trace); cons.TestLevel(L4j.Warn); cons.TestLevel(L4j.Trace); cons.TestLevel(L4j.Trace); cons.TestLevel(L4j.Info); cons.BlankLine(); cons.TestLevel(L4j.Info); cons.TestLevel(L4j.Error); cons.TestLevel(L4j.Fatal); }
public static void TestPalette(this ConsoleControl.ConsoleControl cons) { cons.TestColor(Color.DimGray); cons.TestColor(Color.Gray); cons.TestColor(Color.DarkGray); cons.TestColor(Color.LightGray); cons.BlankLine(); cons.TestColor(Color.DarkSlateGray); cons.TestColor(Color.SlateGray); cons.TestColor(Color.LightSlateGray); cons.BlankLine(); cons.TestColor(Color.Yellow); cons.TestColor(Color.Red); }
private static void TwoColumnLayout(ConsoleControl.ConsoleControl cons, LogEventArg e) { var colr = GetColor(e.Level); if (e.Title == No.Break || e.Message == No.Break) { if (e.ShowAs == ShowLogAs.Intro) { cons.WriteCol1of2(colr, e.Title); } else if (e.ShowAs == ShowLogAs.Outro) { cons.WriteLine(colr, e.Message); } else { Throw.Unsupported(e.ShowAs, No.Break); } } else { if (e.Level == L4j.Info && e.Title.EndsWith("...")) { cons.BlankLine(); } cons.Write2Cols(colr, e.Title, e.Message); } }