java.lang.Object
ch.qos.logback.core.util.StatusPrinter2
Same as StatusPrinter but with instance methods instead of static.
- Since:
- 1.5.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildStr(StringBuilder sb, String indentation, Status s) voidPrint the contents of the context's status data.voidPrint context's status data with a timestamp higher than the threshold.voidprint(StatusManager sm) voidprint(StatusManager sm, long threshold) voidvoidprintIfErrorsOccured(Context context) Print the contents of the context statuses, but only if they contain errors.voidprintInCaseOfErrorsOrWarnings(Context context) Print the contents of the context statuses, but only if they contain warnings or errors.voidprintInCaseOfErrorsOrWarnings(Context context, long threshold) Print the contents of the context status, but only if they contain warnings or errors occurring later than the threshold.voidsetPrintStream(PrintStream printStream)
-
Constructor Details
-
StatusPrinter2
public StatusPrinter2()
-
-
Method Details
-
setPrintStream
-
printInCaseOfErrorsOrWarnings
Print the contents of the context statuses, but only if they contain warnings or errors.- Parameters:
context- a context to print
-
printInCaseOfErrorsOrWarnings
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 printthreshold- filter events later than the threshold
-
printIfErrorsOccured
Print the contents of the context statuses, but only if they contain errors.- Parameters:
context- a context to print
-
print
-
print
-
print
-
print
-
print
-
buildStr
-