Klasse SlingStatusPrinter
java.lang.Object
org.apache.sling.commons.log.logback.internal.util.SlingStatusPrinter
Custom StatusPrinter similar to Logback StatusPrinter to account for changes required
for SLING-3410
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic void
printInCaseOfErrorsOrWarnings
(@Nullable ch.qos.logback.core.Context context, long threshold, long msgSince, boolean initSuccess) Based on StatusPrinter. printInCaseOfErrorsOrWarnings.
-
Methodendetails
-
printInCaseOfErrorsOrWarnings
public static void printInCaseOfErrorsOrWarnings(@Nullable @Nullable ch.qos.logback.core.Context context, long threshold, long msgSince, boolean initSuccess) Based on StatusPrinter. printInCaseOfErrorsOrWarnings. This has been adapted to print more context i.e. some message from before the error message to better understand the failure scenario- Parameter:
context
- the logback contextthreshold
- time since which the message have to be checked for errors/warningsmsgSince
- time from which we are interested in the message logsinitSuccess
- flag indicating if Logback configuration failed or not
-