Package ch.qos.logback.core.status
Class StatusUtil
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
-
noXMLParsingErrorsOccurred
-
getHighestLevel
-
isErrorFree
-
isWarningOrErrorFree
-
containsMatch
-
containsMatch
-
containsMatch
-
levelCount
-
matchCount
-
containsException
-
containsException
-
timeOfLastReset
Return the time of last reset. -1 if last reset time could not be found- Returns:
- time of last reset or -1
-