Filter.Result
Modifier and Type | Method and Description |
---|---|
CompositeFilter |
addFilter(Filter filter) |
static CompositeFilter |
createFilters(Filter[] filters)
Create a CompositeFilter.
|
Filter.Result |
filter(LogEvent event)
Filter an event.
|
Filter.Result |
filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t)
Filter an event.
|
Filter.Result |
filter(Logger logger,
Level level,
Marker marker,
Object msg,
Throwable t)
Filter an event.
|
Filter.Result |
filter(Logger logger,
Level level,
Marker marker,
String msg,
Object... params)
Filter an event.
|
List<Filter> |
getFilters() |
Filter.Result |
getOnMatch()
Returns the result that should be returned when the filter matches the event.
|
Filter.Result |
getOnMismatch()
Returns the result that should be returned when the filter does not match the event.
|
boolean |
hasFilters() |
boolean |
isStarted() |
Iterator<Filter> |
iterator() |
CompositeFilter |
removeFilter(Filter filter) |
int |
size() |
void |
start() |
void |
stop() |
String |
toString() |
public CompositeFilter addFilter(Filter filter)
public CompositeFilter removeFilter(Filter filter)
public boolean hasFilters()
public int size()
public Filter.Result getOnMismatch()
getOnMismatch
in interface Filter
public Filter.Result getOnMatch()
getOnMatch
in interface Filter
public Filter.Result filter(Logger logger, Level level, Marker marker, String msg, Object... params)
public Filter.Result filter(Logger logger, Level level, Marker marker, Object msg, Throwable t)
public Filter.Result filter(Logger logger, Level level, Marker marker, Message msg, Throwable t)
public Filter.Result filter(LogEvent event)
public static CompositeFilter createFilters(Filter[] filters)
filters
- An array of Filters to call.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.