Package ch.qos.logback.core.util
Class StatusPrinter
java.lang.Object
ch.qos.logback.core.util.StatusPrinter
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static CachingDateFormatterprivate static PrintStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidstatic voidbuildStr(StringBuilder sb, String indentation, Status s) private static voidbuildStrFromStatusList(StringBuilder sb, List<Status> statusList) 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 then the threshold.static voidsetPrintStream(PrintStream printStream)
-
Field Details
-
ps
-
cachingDateFormat
-
-
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 then 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
-
buildStrFromStatusList
-
appendThrowable
-
buildStr
-