public class FilterWrapper extends Filter
| Constructor and Description |
|---|
FilterWrapper(Filter filter) |
| Modifier and Type | Method and Description |
|---|---|
static Filter |
adapt(Filter filter)
Adapts a Log4j 2.x filter into a Log4j 1.x filter.
|
int |
decide(LoggingEvent event)
This method is never called.
|
Filter |
getFilter() |
activateOptions, getNext, setNextpublic FilterWrapper(Filter filter)
public static Filter adapt(Filter filter)
FilterAdapter.adapt(Filter) should return the original
Log4j 1.x filter.filter - a Log4j 2.x filternull if the parameter is nullpublic Filter getFilter()
public int decide(LoggingEvent event)
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.