public interface Filterable extends LifeCycle
Extends LifeCycle
since filters have a life cycle.
LifeCycle.State
Modifier and Type | Method and Description |
---|---|
void |
addFilter(Filter filter)
Adds a new Filter.
|
Filter |
getFilter()
Returns an Iterator for all the Filters.
|
boolean |
hasFilter()
Determine if a Filter is present.
|
boolean |
isFiltered(LogEvent event)
Determines if the event should be filtered.
|
void |
removeFilter(Filter filter)
Removes a Filter.
|
void addFilter(Filter filter)
filter
- The Filter to add.void removeFilter(Filter filter)
filter
- The Filter to remove.Filter getFilter()
boolean hasFilter()
boolean isFiltered(LogEvent event)
event
- The LogEvent.Copyright © 1999-2017. 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.