Top Fields Constructors Methods
ch.qos.logback.core.util

public Class StatusPrinter

extends Object
Class Inheritance
Imports
java.io.PrintStream, java.util.Iterator, .List, ch.qos.logback.core.Context, .CoreConstants, ch.qos.logback.core.helpers.ThrowableToStringArray, ch.qos.logback.core.status.*

Field Summary

Modifier and TypeField and Description
pack-priv static CachingDateFormatter
private static PrintStream

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
public static void
buildStr(StringBuilder sb, String indentation, Status s)

private static void
public static void
printIfErrorsOccured(Context context)

Print the contents of the context statuses, but only if they contain errors.

public static void
printInCaseOfErrorsOrWarnings(Context context)

Print the contents of the context statuses, but only if they contain warnings or errors.

public 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.

public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cachingDateFormatback to summary
pack-priv static CachingDateFormatter cachingDateFormat
psback to summary
private static PrintStream ps

Constructor Detail

StatusPrinterback to summary
public StatusPrinter()

Method Detail

appendThrowableback to summary
private static void appendThrowable(StringBuilder sb, Throwable t)
buildStrback to summary
public static void buildStr(StringBuilder sb, String indentation, Status s)
buildStrFromStatusListback to summary
private static void buildStrFromStatusList(StringBuilder sb, List<Status> statusList)
printIfErrorsOccuredback to summary
public static void printIfErrorsOccured(Context context)

Print the contents of the context statuses, but only if they contain errors.

printInCaseOfErrorsOrWarningsback to summary
public static void printInCaseOfErrorsOrWarnings(Context context)

Print the contents of the context statuses, but only if they contain warnings or errors.

printInCaseOfErrorsOrWarningsback to summary
public 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.

setPrintStreamback to summary
public static void setPrintStream(PrintStream printStream)