Package ch.qos.logback.core.status
Class StatusUtil
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
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
-
diff
-