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