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.filter;
Users should extend this class to implement customized event filtering.

We suggest that you first try to use the built-in rules before rushing to write your own custom filters.

For more information about filters, please refer to the online manual at

Ceki Gülcü
public abstract class Filter<E> extends ContextAwareBase implements LifeCycle {
  private String name;
  boolean start = false;
  public void start() {
    this. = true;
  public boolean isStarted() {
    return this.;
  public void stop() {
    this. = false;

If the decision is ch.qos.logback.core.spi.FilterReply.DENY, then the event will be dropped. If the decision is ch.qos.logback.core.spi.FilterReply.NEUTRAL, then the next filter, if any, will be invoked. If the decision is ch.qos.logback.core.spi.FilterReply.ACCEPT then the event will be logged without consulting with other filters in the chain.

event The event to decide upon.
  public abstract FilterReply decide(E event);
  public String getName() {
    return ;
  public void setName(String name) {
    this. = name;
New to GrepCode? Check out our FAQ X