Class StatusPrinter2


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

      • 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