Class StatusPrinter2

java.lang.Object
ch.qos.logback.core.util.StatusPrinter2

public class StatusPrinter2 extends Object
Same as StatusPrinter but with instance methods instead of static.
Since:
1.5.4
  • Constructor Details

  • Method Details

    • setPrintStream

      public void setPrintStream(PrintStream printStream)
    • printInCaseOfErrorsOrWarnings

      public void printInCaseOfErrorsOrWarnings(Context context)
      Print the contents of the context statuses, but only if they contain warnings or errors.
      Parameters:
      context - a context to print
    • printInCaseOfErrorsOrWarnings

      public void printInCaseOfErrorsOrWarnings(Context context, long threshold)
      Print the contents of the context status, but only if they contain warnings or errors occurring later than the threshold.
      Parameters:
      context - a context to print
      threshold - filter events later than the threshold
    • printIfErrorsOccured

      public void printIfErrorsOccured(Context context)
      Print the contents of the context statuses, but only if they contain errors.
      Parameters:
      context - a context to print
    • print

      public void print(Context context)
      Print the contents of the context's status data.
      Parameters:
      context - a context to print
    • print

      public void print(Context context, long threshold)
      Print context's status data with a timestamp higher than the threshold.
      Parameters:
      context - a context to print
    • print

      public void print(StatusManager sm)
    • print

      public void print(StatusManager sm, long threshold)
    • print

      public void print(List<Status> statusList)
    • buildStr

      public void buildStr(StringBuilder sb, String indentation, Status s)