Package org.apache.log4j.builders.filter
Class LevelRangeFilterBuilder
- java.lang.Object
-
- org.apache.log4j.builders.AbstractBuilder<Filter>
-
- org.apache.log4j.builders.filter.LevelRangeFilterBuilder
-
- All Implemented Interfaces:
Builder<Filter>
,FilterBuilder
,Parser<Filter>
@Plugin(name="org.apache.log4j.varia.LevelRangeFilter", category="Log4j Builder") public class LevelRangeFilterBuilder extends AbstractBuilder<Filter> implements FilterBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
ACCEPT_ON_MATCH
private static java.lang.String
LEVEL_MAX
private static java.lang.String
LEVEL_MIN
-
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 LevelRangeFilterBuilder()
LevelRangeFilterBuilder(java.lang.String prefix, java.util.Properties props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Filter
createFilter(java.lang.String levelMax, java.lang.String levelMin, boolean acceptOnMatch)
Filter
parse(PropertiesConfiguration config)
Parses a PropertiesConfigurationt.Filter
parse(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
-
LEVEL_MAX
private static final java.lang.String LEVEL_MAX
- See Also:
- Constant Field Values
-
LEVEL_MIN
private static final java.lang.String LEVEL_MIN
- 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:Parser
Parses a DOM Element.
-
parse
public Filter parse(PropertiesConfiguration config)
Description copied from interface:Parser
Parses a PropertiesConfigurationt.
-
createFilter
private Filter createFilter(java.lang.String levelMax, java.lang.String levelMin, boolean acceptOnMatch)
-
-