Package org.apache.log4j.builders.filter
Class StringMatchFilterBuilder
- java.lang.Object
-
- org.apache.log4j.builders.AbstractBuilder<Filter>
-
- org.apache.log4j.builders.filter.StringMatchFilterBuilder
-
- All Implemented Interfaces:
Builder<Filter>,FilterBuilder,Parser<Filter>
@Plugin(name="org.apache.log4j.varia.StringMatchFilter", category="Log4j Builder") public class StringMatchFilterBuilder extends AbstractBuilder<Filter> implements FilterBuilder
Build a String match filter.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringACCEPT_ON_MATCHprivate static LoggerLOGGERprivate static java.lang.StringSTRING_TO_MATCH-
Fields inherited from class org.apache.log4j.builders.AbstractBuilder
APPEND_PARAM, BUFFER_SIZE_PARAM, BUFFERED_IO_PARAM, FILE_PARAM, IMMEDIATE_FLUSH_PARAM, MAX_BACKUP_INDEX, MAX_SIZE_PARAM, NULL, RELATIVE
-
-
Constructor Summary
Constructors Constructor Description StringMatchFilterBuilder()StringMatchFilterBuilder(java.lang.String prefix, java.util.Properties props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private FiltercreateFilter(java.lang.String text, boolean acceptOnMatch)Filterparse(PropertiesConfiguration config)Parses a PropertiesConfigurationt.Filterparse(org.w3c.dom.Element filterElement, XmlConfiguration config)Parses a DOM Element.-
Methods inherited from class org.apache.log4j.builders.AbstractBuilder
buildFilters, getBooleanProperty, getBooleanProperty, getBooleanValueAttribute, getIntegerProperty, getLongProperty, getNameAttribute, getNameAttributeKey, getProperties, getProperty, getProperty, getValueAttribute, getValueAttribute, set, set, set, set, substVars
-
-
-
-
Field Detail
-
LOGGER
private static final Logger LOGGER
-
STRING_TO_MATCH
private static final java.lang.String STRING_TO_MATCH
- See Also:
- Constant Field Values
-
ACCEPT_ON_MATCH
private static final java.lang.String ACCEPT_ON_MATCH
- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public Filter parse(org.w3c.dom.Element filterElement, XmlConfiguration config)
Description copied from interface:ParserParses a DOM Element.
-
parse
public Filter parse(PropertiesConfiguration config)
Description copied from interface:ParserParses a PropertiesConfigurationt.
-
createFilter
private Filter createFilter(java.lang.String text, boolean acceptOnMatch)
-
-