Package ch.qos.logback.core.status
Class StatusUtil
- java.lang.Object
-
- ch.qos.logback.core.status.StatusUtil
-
@Deprecated(since="2022-01-27") public class StatusUtil extends java.lang.ObjectDeprecated.
-
-
Constructor Summary
Constructors Constructor Description StatusUtil(Context context)Deprecated.StatusUtil(StatusManager sm)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddError(java.lang.Object caller, java.lang.String msg, java.lang.Throwable t)Deprecated.voidaddInfo(java.lang.Object caller, java.lang.String msg)Deprecated.voidaddStatus(Status status)Deprecated.voidaddWarn(java.lang.Object caller, java.lang.String msg)Deprecated.booleancontainsException(java.lang.Class<?> exceptionType)Deprecated.booleancontainsMatch(int level, java.lang.String regex)Deprecated.booleancontainsMatch(long threshold, int level, java.lang.String regex)Deprecated.booleancontainsMatch(java.lang.String regex)Deprecated.static booleancontextHasStatusListener(Context context)Deprecated.Returns true if the StatusManager associated with the context passed as parameter has one or more StatusListener instances registered.static java.util.List<Status>filterStatusListByTimeThreshold(java.util.List<Status> rawList, long threshold)Deprecated.intgetHighestLevel(long threshold)Deprecated.booleanhasXMLParsingErrors(long threshold)Deprecated.booleanisErrorFree(long threshold)Deprecated.booleanisWarningOrErrorFree(long threshold)Deprecated.intmatchCount(java.lang.String regex)Deprecated.booleannoXMLParsingErrorsOccurred(long threshold)Deprecated.longtimeOfLastReset()Deprecated.Return the time of last reset.
-
-
-
Constructor Detail
-
StatusUtil
public StatusUtil(StatusManager sm)
Deprecated.
-
StatusUtil
public StatusUtil(Context context)
Deprecated.
-
-
Method Detail
-
contextHasStatusListener
public static boolean contextHasStatusListener(Context context)
Deprecated.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
public static java.util.List<Status> filterStatusListByTimeThreshold(java.util.List<Status> rawList, long threshold)
Deprecated.
-
addStatus
public void addStatus(Status status)
Deprecated.
-
addInfo
public void addInfo(java.lang.Object caller, java.lang.String msg)Deprecated.
-
addWarn
public void addWarn(java.lang.Object caller, java.lang.String msg)Deprecated.
-
addError
public void addError(java.lang.Object caller, java.lang.String msg, java.lang.Throwable t)Deprecated.
-
hasXMLParsingErrors
public boolean hasXMLParsingErrors(long threshold)
Deprecated.
-
noXMLParsingErrorsOccurred
public boolean noXMLParsingErrorsOccurred(long threshold)
Deprecated.
-
getHighestLevel
public int getHighestLevel(long threshold)
Deprecated.
-
isErrorFree
public boolean isErrorFree(long threshold)
Deprecated.
-
isWarningOrErrorFree
public boolean isWarningOrErrorFree(long threshold)
Deprecated.
-
containsMatch
public boolean containsMatch(long threshold, int level, java.lang.String regex)Deprecated.
-
containsMatch
public boolean containsMatch(int level, java.lang.String regex)Deprecated.
-
containsMatch
public boolean containsMatch(java.lang.String regex)
Deprecated.
-
matchCount
public int matchCount(java.lang.String regex)
Deprecated.
-
containsException
public boolean containsException(java.lang.Class<?> exceptionType)
Deprecated.
-
timeOfLastReset
public long timeOfLastReset()
Deprecated.Return the time of last reset. -1 if last reset time could not be found- Returns:
- time of last reset or -1
-
-