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