Package ch.qos.logback.core.util
Class StatusPrinter
java.lang.Object
ch.qos.logback.core.util.StatusPrinter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbuildStr(StringBuilder sb, String indentation, Status s) static voidPrint the contents of the context's status data.static voidPrint context's status data with a timestamp higher than the threshold.static voidprint(StatusManager sm) static voidprint(StatusManager sm, long threshold) static voidstatic voidprintIfErrorsOccured(Context context) Print the contents of the context statuses, but only if they contain errors.static voidprintInCaseOfErrorsOrWarnings(Context context) Print the contents of the context statuses, but only if they contain warnings or errors.static 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.static voidsetPrintStream(PrintStream printStream)
-
Constructor Details
-
StatusPrinter
public StatusPrinter()
-
-
Method Details
-
setPrintStream
-
printInCaseOfErrorsOrWarnings
Print the contents of the context statuses, but only if they contain warnings or errors.- Parameters:
context-
-
printInCaseOfErrorsOrWarnings
Print the contents of the context status, but only if they contain warnings or errors occurring later than the threshold.- Parameters:
context-
-
printIfErrorsOccured
Print the contents of the context statuses, but only if they contain errors.- Parameters:
context-
-
print
Print the contents of the context's status data.- Parameters:
context-
-
print
Print context's status data with a timestamp higher than the threshold.- Parameters:
context-
-
print
-
print
-
print
-
buildStr
-