java.lang.Object
ch.qos.logback.core.status.StatusUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidbooleancontainsException(Class<?> exceptionType) booleancontainsException(Class<?> exceptionType, String msgRegex) booleancontainsMatch(int level, String regex) booleancontainsMatch(long threshold, int level, String regex) booleancontainsMatch(String regex) static booleancontextHasStatusListener(Context context) Returns true if the StatusManager associated with the context passed as parameter has one or more StatusListener instances registered.filterStatusListByTimeThreshold(List<Status> rawList, long threshold) intgetHighestLevel(long threshold) booleanhasXMLParsingErrors(long threshold) booleanisErrorFree(long threshold) booleanisWarningOrErrorFree(long threshold) intlevelCount(int level, long threshold) intmatchCount(String regex) booleannoXMLParsingErrorsOccurred(long threshold) longReturn the time of last reset.
-
Constructor Details
-
StatusUtil
-
StatusUtil
-
-
Method Details
-
contextHasStatusListener
Returns true if the StatusManager associated with the context passed as parameter has one or more StatusListener instances registered. Returns false otherwise.- Parameters:
context-- Returns:
- true if one or more StatusListeners registered, false otherwise
- Since:
- 1.0.8
-
filterStatusListByTimeThreshold
-
addStatus
-
addInfo
-
addWarn
-
addError
-
hasXMLParsingErrors
public boolean hasXMLParsingErrors(long threshold) -
noXMLParsingErrorsOccurred
public boolean noXMLParsingErrorsOccurred(long threshold) -
getHighestLevel
public int getHighestLevel(long threshold) -
isErrorFree
public boolean isErrorFree(long threshold) -
isWarningOrErrorFree
public boolean isWarningOrErrorFree(long threshold) -
containsMatch
-
containsMatch
-
containsMatch
-
levelCount
public int levelCount(int level, long threshold) -
matchCount
-
containsException
-
containsException
-
timeOfLastReset
public long timeOfLastReset()Return the time of last reset. -1 if last reset time could not be found- Returns:
- time of last reset or -1
-