Package com.jalios.jcms.logging
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_OPTIONFields inherited from class org.apache.log4j.spi.Filter
ACCEPT, DENY, NEUTRAL, next -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdecide(org.apache.log4j.spi.LoggingEvent event) ReturnsFilter.NEUTRALis there is no string match.Methods inherited from class org.apache.log4j.varia.StringMatchFilter
getAcceptOnMatch, getOptionStrings, getStringToMatch, setAcceptOnMatch, setOption, setStringToMatchMethods inherited from class org.apache.log4j.spi.Filter
activateOptions, getNext, setNext
-
Constructor Details
-
NDCMatchFilter
public NDCMatchFilter()
-
-
Method Details
-
decide
public int decide(org.apache.log4j.spi.LoggingEvent event) ReturnsFilter.NEUTRALis there is no string match.- Overrides:
decidein classorg.apache.log4j.varia.StringMatchFilter
-