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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildStr
(StringBuilder sb, String indentation, Status s) void
Print the contents of the context's status data.void
Print context's status data with a timestamp higher than the threshold.void
print
(StatusManager sm) void
print
(StatusManager sm, long threshold) void
void
printIfErrorsOccured
(Context context) Print the contents of the context statuses, but only if they contain errors.void
printInCaseOfErrorsOrWarnings
(Context context) Print the contents of the context statuses, but only if they contain warnings or errors.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.void
setPrintStream
(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
-