Uses of Class
org.apache.log4j.spi.Filter
-
Packages that use Filter Package Description org.apache.log4j Log4j 1.x compatibility layer.org.apache.log4j.bridge org.apache.log4j.builders org.apache.log4j.builders.appender org.apache.log4j.builders.filter org.apache.log4j.config Log4j 1.x compatibility layer.org.apache.log4j.spi Log4j 1.x compatibility layer.org.apache.log4j.varia org.apache.log4j.xml Log4j 1.x compatibility layer. -
-
Uses of Filter in org.apache.log4j
Fields in org.apache.log4j declared as Filter Modifier and Type Field Description protected Filter
AppenderSkeleton. headFilter
protected Filter
AppenderSkeleton. tailFilter
Methods in org.apache.log4j that return Filter Modifier and Type Method Description Filter
Appender. getFilter()
Returns the head Filter.Filter
AppenderSkeleton. getFilter()
Filter
AppenderSkeleton. getFirstFilter()
Methods in org.apache.log4j with parameters of type Filter Modifier and Type Method Description void
Appender. addFilter(Filter newFilter)
Add a filter to the end of the filter list.void
AppenderSkeleton. addFilter(Filter newFilter)
-
Uses of Filter in org.apache.log4j.bridge
Subclasses of Filter in org.apache.log4j.bridge Modifier and Type Class Description class
FilterWrapper
This acts as a container for Log4j 2 Filters to be attached to Log4j 1 components.Fields in org.apache.log4j.bridge declared as Filter Modifier and Type Field Description private Filter
FilterAdapter. filter
Methods in org.apache.log4j.bridge that return Filter Modifier and Type Method Description static Filter
FilterWrapper. adapt(Filter filter)
Adapts a Log4j 2.x filter into a Log4j 1.x filter.static Filter
FilterAdapter. addFilter(Filter first, Filter second)
Appends one filter to another using Log4j 2.x concatenation utilities.Filter
AppenderWrapper. getFilter()
Filter
FilterAdapter. getFilter()
Gets the actual filter.Methods in org.apache.log4j.bridge with parameters of type Filter Modifier and Type Method Description static Filter
FilterAdapter. adapt(Filter filter)
Adapts a Log4j 1.x filter into a Log4j 2.x filter.void
AppenderWrapper. addFilter(Filter newFilter)
static Filter
FilterAdapter. addFilter(Filter first, Filter second)
Appends one filter to another using Log4j 2.x concatenation utilities.Constructors in org.apache.log4j.bridge with parameters of type Filter Constructor Description FilterAdapter(Filter filter)
-
Uses of Filter in org.apache.log4j.builders
Fields in org.apache.log4j.builders declared as Filter Modifier and Type Field Description static Filter
BuilderManager. INVALID_FILTER
Methods in org.apache.log4j.builders that return Filter Modifier and Type Method Description Filter
BuilderManager. parseFilter(java.lang.String className, org.w3c.dom.Element filterElement, XmlConfiguration config)
Methods in org.apache.log4j.builders with parameters of type Filter Modifier and Type Method Description protected static Filter
AbstractBuilder. buildFilters(java.lang.String level, Filter filter)
-
Uses of Filter in org.apache.log4j.builders.appender
Methods in org.apache.log4j.builders.appender with parameters of type Filter Modifier and Type Method Description private <T extends Log4j1Configuration>
AppenderAsyncAppenderBuilder. createAppender(java.lang.String name, java.lang.String level, java.lang.String[] appenderRefs, boolean blocking, int bufferSize, boolean includeLocation, Filter filter, T configuration)
private <T extends Log4j1Configuration>
AppenderConsoleAppenderBuilder. createAppender(java.lang.String name, Layout layout, Filter filter, java.lang.String level, java.lang.String target, boolean immediateFlush, boolean follow, T configuration)
private <T extends Log4j1Configuration>
AppenderDailyRollingFileAppenderBuilder. createAppender(java.lang.String name, Layout layout, Filter filter, java.lang.String fileName, boolean append, boolean immediateFlush, java.lang.String level, boolean bufferedIo, int bufferSize, java.lang.String datePattern, T configuration)
private Appender
EnhancedRollingFileAppenderBuilder. createAppender(java.lang.String name, Layout layout, Filter filter, java.lang.String fileName, java.lang.String level, boolean immediateFlush, boolean append, boolean bufferedIo, int bufferSize, java.lang.String rollingPolicyClassName, java.lang.String activeFileName, java.lang.String fileNamePattern, int minIndex, int maxIndex, TriggeringPolicy triggeringPolicy, Configuration configuration)
private Appender
FileAppenderBuilder. createAppender(java.lang.String name, Log4j1Configuration configuration, Layout layout, Filter filter, java.lang.String fileName, java.lang.String level, boolean immediateFlush, boolean append, boolean bufferedIo, int bufferSize)
private <T extends Log4j1Configuration>
AppenderRewriteAppenderBuilder. createAppender(java.lang.String name, java.lang.String level, java.lang.String[] appenderRefs, RewritePolicy policy, Filter filter, T configuration)
private Appender
RollingFileAppenderBuilder. createAppender(java.lang.String name, Log4j1Configuration config, Layout layout, Filter filter, boolean append, boolean bufferedIo, int bufferSize, boolean immediateFlush, java.lang.String fileName, java.lang.String level, java.lang.String maxSize, java.lang.String maxBackups)
private <T extends Log4j1Configuration>
AppenderSocketAppenderBuilder. createAppender(java.lang.String name, java.lang.String host, int port, Layout layout, Filter filter, java.lang.String level, boolean immediateFlush, int reconnectDelayMillis, T configuration)
private Appender
SyslogAppenderBuilder. createAppender(java.lang.String name, Log4j1Configuration configuration, Layout layout, java.lang.String facility, Filter filter, java.lang.String syslogHost, java.lang.String level, Protocol protocol, boolean header, boolean facilityPrinting)
-
Uses of Filter in org.apache.log4j.builders.filter
Methods in org.apache.log4j.builders.filter that return Filter Modifier and Type Method Description private Filter
LevelMatchFilterBuilder. createFilter(java.lang.String level, boolean acceptOnMatch)
private Filter
LevelRangeFilterBuilder. createFilter(java.lang.String levelMax, java.lang.String levelMin, boolean acceptOnMatch)
private Filter
StringMatchFilterBuilder. createFilter(java.lang.String text, boolean acceptOnMatch)
Filter
DenyAllFilterBuilder. parse(PropertiesConfiguration config)
Filter
DenyAllFilterBuilder. parse(org.w3c.dom.Element filterElement, XmlConfiguration config)
Filter
LevelMatchFilterBuilder. parse(PropertiesConfiguration config)
Filter
LevelMatchFilterBuilder. parse(org.w3c.dom.Element filterElement, XmlConfiguration config)
Filter
LevelRangeFilterBuilder. parse(PropertiesConfiguration config)
Filter
LevelRangeFilterBuilder. parse(org.w3c.dom.Element filterElement, XmlConfiguration config)
Filter
StringMatchFilterBuilder. parse(PropertiesConfiguration config)
Filter
StringMatchFilterBuilder. parse(org.w3c.dom.Element filterElement, XmlConfiguration config)
-
Uses of Filter in org.apache.log4j.config
Methods in org.apache.log4j.config that return Filter Modifier and Type Method Description private Filter
PropertiesConfiguration. buildFilter(java.lang.String className, java.lang.String appenderName, java.util.List<PropertiesConfiguration.NameValue> props)
Filter
PropertiesConfiguration. parseAppenderFilters(java.util.Properties props, java.lang.String filterPrefix, java.lang.String appenderName)
-
Uses of Filter in org.apache.log4j.spi
Fields in org.apache.log4j.spi declared as Filter Modifier and Type Field Description Filter
Filter. next
Deprecated.As of 1.2.12, usegetNext()
andsetNext(org.apache.log4j.spi.Filter)
insteadMethods in org.apache.log4j.spi that return Filter Modifier and Type Method Description Filter
Filter. getNext()
Return the pointer to the next filter.Methods in org.apache.log4j.spi with parameters of type Filter Modifier and Type Method Description void
Filter. setNext(Filter next)
Set the next filter pointer. -
Uses of Filter in org.apache.log4j.varia
Subclasses of Filter in org.apache.log4j.varia Modifier and Type Class Description class
DenyAllFilter
Denies all logging events.class
LevelMatchFilter
Simple filter based on level matching.class
LevelRangeFilter
This is a very simple filter based on level matching, which can be used to reject messages with priorities outside a certain range.class
StringMatchFilter
Simple filter based on string matching. -
Uses of Filter in org.apache.log4j.xml
Methods in org.apache.log4j.xml that return Filter Modifier and Type Method Description private Filter
XmlConfiguration. buildFilter(java.lang.String className, org.w3c.dom.Element filterElement)
Filter
XmlConfiguration. parseFilters(org.w3c.dom.Element filterElement)
Used internally to parse a filter element.Method parameters in org.apache.log4j.xml with type arguments of type Filter Modifier and Type Method Description void
XmlConfiguration. addFilter(java.util.concurrent.atomic.AtomicReference<Filter> ref, org.w3c.dom.Element filterElement)
Used internally to parse a filter element.
-