Class NDCMatchFilter

  • All Implemented Interfaces:
    org.apache.log4j.spi.OptionHandler
    Direct Known Subclasses:
    JcmsSecurityMatchFilter

    public class NDCMatchFilter
    extends org.apache.log4j.varia.StringMatchFilter
    This filter only allows message with StringToMatch in the NDC.
    Since:
    jcms-10.0.6
    Author:
    sdevaux
    • Field Summary

      • Fields inherited from class org.apache.log4j.varia.StringMatchFilter

        ACCEPT_ON_MATCH_OPTION, STRING_TO_MATCH_OPTION
      • Fields inherited from class org.apache.log4j.spi.Filter

        ACCEPT, DENY, NEUTRAL, next
    • Constructor Summary

      Constructors 
      Constructor Description
      NDCMatchFilter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int decide​(org.apache.log4j.spi.LoggingEvent event)
      Returns Filter.NEUTRAL is there is no string match.
      • Methods inherited from class org.apache.log4j.varia.StringMatchFilter

        getAcceptOnMatch, getOptionStrings, getStringToMatch, setAcceptOnMatch, setOption, setStringToMatch
      • Methods inherited from class org.apache.log4j.spi.Filter

        activateOptions, getNext, setNext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NDCMatchFilter

        public NDCMatchFilter()
    • Method Detail

      • decide

        public int decide​(org.apache.log4j.spi.LoggingEvent event)
        Returns Filter.NEUTRAL is there is no string match.
        Overrides:
        decide in class org.apache.log4j.varia.StringMatchFilter