org.apache.log.filter
Class PriorityFilter
- FilterTarget, LogTarget
public class PriorityFilter
Filters log events based on priority.
- Peter Donald
PriorityFilter
public PriorityFilter(Priority priority)
Constructor that sets the priority that is filtered against.
priority
- the Priority
filter
protected boolean filter(LogEvent event)
Filter the log event based on priority.
If LogEvent has a Lower or Equal priroity then discard it.
- filter in interface AbstractFilterTarget
event
- the event
- return true to discard event, false otherwise
setPriority
public void setPriority(Priority priority)
Set priority used to filter.
priority
- the priority to filter on