public interface Rule
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to this instance, which is notified when
underlying Rule information has changed.
|
boolean |
evaluate(LoggingEvent e,
java.util.Map matches)
Returns true if this implementation of the rule accepts the LoggingEvent,
or false if not.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a known PropertyChangeListener from this Rule.
|
boolean evaluate(LoggingEvent e, java.util.Map matches)
What True/False means can be client-specific.
e
- LoggingEvent this instance will evaluatematches
- a Map of event field keys to Sets of matching strings (may be null) which will be
updated during execution of this method to include field and string matches based on the rule
evaluation resultsvoid addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- listenervoid removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- listenerCopyright © 2006-2019 OPS4J - Open Participation Software for Java. All Rights Reserved.