Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Logback: the reliable, generic, fast and flexible logging framework. Copyright (C) 1999-2011, All rights reserved. This program and the accompanying materials are dual-licensed under either the terms of the Eclipse Public License v1.0 as published by the Eclipse Foundation or (per the licensee's choosing) under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.
package ch.qos.logback.core.status;
public class StatusUtil {
  static public List<StatusfilterStatusListByTimeThreshold(List<StatusrawListlong threshold) {
    List<StatusfilteredList = new ArrayList<Status>();
    for (Status s : rawList) {
      if (s.getDate() >= threshold)
    return filteredList;
  static public void addStatus(Context contextStatus status) {
    if (context == null) {
    StatusManager sm = context.getStatusManager();
    if (sm != null) {
  static public void addInfo(Context contextObject callerString msg) {
    addStatus(contextnew InfoStatus(msgcaller));
  static public void addWarn(Context contextObject callerString msg) {
    addStatus(contextnew WarnStatus(msgcaller));
  static public void addError(Context contextObject callerString msg,
      Throwable t) {
    addStatus(contextnew ErrorStatus(msgcallert));
New to GrepCode? Check out our FAQ X