java.lang.Object
ch.qos.logback.core.status.StatusUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
boolean
containsException
(Class<?> exceptionType) boolean
containsException
(Class<?> exceptionType, String msgRegex) boolean
containsMatch
(int level, String regex) boolean
containsMatch
(long threshold, int level, String regex) boolean
containsMatch
(String regex) static boolean
contextHasStatusListener
(Context context) Returns true if the StatusManager associated with the context passed as parameter has one or more StatusListener instances registered.static String
filterStatusListByTimeThreshold
(List<Status> rawList, long threshold) int
getHighestLevel
(long threshold) boolean
hasXMLParsingErrors
(long threshold) boolean
isErrorFree
(long threshold) boolean
isWarningOrErrorFree
(long threshold) int
levelCount
(int level, long threshold) int
matchCount
(String regex) boolean
noXMLParsingErrorsOccurred
(long threshold) long
Return 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
-
diff
-