|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Filterable
Interface implemented by Classes that allow filtering to occur.
Extends LifeCycle
since filters have a life cycle.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.logging.log4j.core.LifeCycle |
---|
LifeCycle.State |
Method Summary | |
---|---|
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. |
Methods inherited from interface org.apache.logging.log4j.core.LifeCycle |
---|
getState, isStarted, isStopped, start, stop |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2015 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.