Class RuleMediator

  • All Implemented Interfaces:
    Serializable, org.apache.log4j.rule.Rule

    public class RuleMediator
    extends org.apache.log4j.rule.AbstractRule
    A mediator class that implements the Rule interface, by combining several optional rules used by Chainsaw's filtering GUI's into a single Rule.

    Setting the individual sub-rules propagates a PropertyChangeEvent as per standard Java beans principles.

    Author:
    Paul Smith <psmith@apache.org>, Scott Deboy <sdeboy@apache.org>
    See Also:
    Serialized Form
    • Constructor Detail

      • RuleMediator

        public RuleMediator​(boolean findRuleRequired)
    • Method Detail

      • evaluate

        public boolean evaluate​(org.apache.log4j.spi.LoggingEvent e,
                                Map matches)
      • isFindRuleRequired

        public boolean isFindRuleRequired()
      • setFilterRule

        public void setFilterRule​(org.apache.log4j.rule.Rule r)
      • setFindRule

        public void setFindRule​(org.apache.log4j.rule.Rule r)
      • setLoggerRule

        public void setLoggerRule​(org.apache.log4j.rule.Rule r)