Package org.apache.log4j.bridge
Class FilterWrapper
java.lang.Object
org.apache.log4j.spi.Filter
org.apache.log4j.bridge.FilterWrapper
This acts as a container for Log4j 2 Filters to be attached to Log4j 1 components. However, the Log4j 2
Filters will always be called directly so this class just acts as a container.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.log4j.spi.Filter
activateOptions, getNext, setNext
-
Field Details
-
filter
-
-
Constructor Details
-
FilterWrapper
-
-
Method Details
-
adapt
Adapts a Log4j 2.x filter into a Log4j 1.x filter. Applying this method to the result ofFilterAdapter.adapt(Filter)
should return the original Log4j 1.x filter.- Parameters:
filter
- a Log4j 2.x filter- Returns:
- a Log4j 1.x filter or
null
if the parameter isnull
-
getFilter
-
decide
This method is never called.
-