public abstract class AbstractFilterable extends Object implements Filterable
Modifier | Constructor and Description |
---|---|
protected |
AbstractFilterable() |
protected |
AbstractFilterable(Filter filter) |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(Filter filter)
Add a filter.
|
Filter |
getFilter()
Returns the Filter.
|
boolean |
hasFilter()
Determines if a Filter is present.
|
boolean |
isFiltered(LogEvent event)
Determine if the LogEvent should be processed or ignored.
|
void |
removeFilter(Filter filter)
Remove a Filter.
|
void |
startFilter()
Make the Filter available for use.
|
void |
stopFilter()
Cleanup the Filter.
|
protected static final Logger LOGGER
protected AbstractFilterable(Filter filter)
protected AbstractFilterable()
public Filter getFilter()
getFilter
in interface Filterable
public void addFilter(Filter filter)
addFilter
in interface Filterable
filter
- The Filter to add.public void removeFilter(Filter filter)
removeFilter
in interface Filterable
filter
- The Filter to remove.public boolean hasFilter()
hasFilter
in interface Filterable
public void startFilter()
public void stopFilter()
public boolean isFiltered(LogEvent event)
isFiltered
in interface Filterable
event
- The LogEvent.Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.