Package org.ops4j.pax.logging.spi
Interface PaxFilter
-
public interface PaxFilterFramework library agnostic representation of a filter that may decide whether to process (pass) logging event or not.
-
-
Field Summary
Fields Modifier and Type Field Description static intACCEPTThe log event must be logged immediately without consulting with the remaining filters, if any, in the chain.static intDENYThe log event must be dropped immediately without consulting with the remaining filters, if any, in the chain.static intNEUTRALThis filter is neutral with respect to the log event.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intdoFilter(PaxLoggingEvent event)If the decision isDENY, then the event will be dropped.
-
-
-
Field Detail
-
DENY
static final int DENY
The log event must be dropped immediately without consulting with the remaining filters, if any, in the chain.- See Also:
- Constant Field Values
-
NEUTRAL
static final int NEUTRAL
This filter is neutral with respect to the log event. The remaining filters, if any, should be consulted for a final decision.- See Also:
- Constant Field Values
-
ACCEPT
static final int ACCEPT
The log event must be logged immediately without consulting with the remaining filters, if any, in the chain.- See Also:
- Constant Field Values
-
-
Method Detail
-
doFilter
int doFilter(PaxLoggingEvent event)
If the decision is
DENY, then the event will be dropped. If the decision isNEUTRAL, then the next filter, if any, will be invoked. If the decision is ACCEPT then the event will be logged without consulting with other filters in the chain.- Parameters:
event- The LoggingPaxLoggingEventEvent to decide upon.- Returns:
- decision The decision of the filter.
-
-