org.apache.log.filter

Class AbstractFilterTarget

public abstract class AbstractFilterTarget extends Object implements FilterTarget, LogTarget

Abstract implementation of FilterTarget. A concrete implementation has to implement filter method.

Author: Avalon Development Team Peter Donald

Method Summary
voidaddTarget(LogTarget target)
Add a new target to output chain.
protected abstract booleanfilter(LogEvent event)
Filter the log event.
voidprocessEvent(LogEvent event)
Process a log event

Method Detail

addTarget

public void addTarget(LogTarget target)
Add a new target to output chain.

Parameters: target the target

filter

protected abstract boolean filter(LogEvent event)
Filter the log event.

Parameters: event the event

Returns: return true to discard event, false otherwise

processEvent

public void processEvent(LogEvent event)
Process a log event

Parameters: event the log event