Class NDCMatchFilter

java.lang.Object
org.apache.log4j.spi.Filter
org.apache.log4j.varia.StringMatchFilter
com.jalios.jcms.logging.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
     
  • Method Summary

    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 Details

    • NDCMatchFilter

      public NDCMatchFilter()
  • Method Details

    • 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