ch.qos.logback.core.status
Class StatusUtil

java.lang.Object
  extended by ch.qos.logback.core.status.StatusUtil

public class StatusUtil
extends Object


Constructor Summary
StatusUtil()
           
 
Method Summary
static void addError(Context context, Object caller, String msg, Throwable t)
           
static void addInfo(Context context, Object caller, String msg)
           
static void addStatus(Context context, Status status)
           
static void addWarn(Context context, Object caller, String msg)
           
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 List<Status> filterStatusListByTimeThreshold(List<Status> rawList, long threshold)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusUtil

public StatusUtil()
Method Detail

contextHasStatusListener

public static boolean contextHasStatusListener(Context context)
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 List<Status> filterStatusListByTimeThreshold(List<Status> rawList,
                                                           long threshold)

addStatus

public static void addStatus(Context context,
                             Status status)

addInfo

public static void addInfo(Context context,
                           Object caller,
                           String msg)

addWarn

public static void addWarn(Context context,
                           Object caller,
                           String msg)

addError

public static void addError(Context context,
                            Object caller,
                            String msg,
                            Throwable t)


Copyright © 2005-2013 QOS.ch. All Rights Reserved.