Filter, LifeCycle, LifeCycle2@Plugin(name="StructuredDataFilter", category="Core", elementType="filter", printObject=true) public final class StructuredDataFilter extends MapFilter
Filter.ResultLifeCycle.StateonMatch, onMismatchDEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGERELEMENT_TYPE| Modifier and Type | Method | Description |
|---|---|---|
static StructuredDataFilter |
createFilter(KeyValuePair[] pairs,
String oper,
Filter.Result match,
Filter.Result mismatch) |
Create the StructuredDataFilter.
|
Filter.Result |
filter(LogEvent event) |
Context Filter method.
|
Filter.Result |
filter(Logger logger,
Level level,
Marker marker,
Message msg,
Throwable t) |
Appender Filter method.
|
protected Filter.Result |
filter(StructuredDataMessage message) |
equalsImpl, filter, filter, getOnMatch, getOnMismatch, hashCodeImplgetState, getStatusLogger, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, start, stop, stop, stopgetState, initialize, isStarted, isStopped, start, stoppublic Filter.Result filter(Logger logger, Level level, Marker marker, Message msg, Throwable t)
AbstractFilterpublic Filter.Result filter(LogEvent event)
AbstractFilterprotected Filter.Result filter(StructuredDataMessage message)
@PluginFactory public static StructuredDataFilter createFilter(@PluginElement("Pairs") KeyValuePair[] pairs, @PluginAttribute("operator") String oper, @PluginAttribute("onMatch") Filter.Result match, @PluginAttribute("onMismatch") Filter.Result mismatch)
pairs - Key and value pairs.oper - The operator to perform. If not "or" the operation will be an "and".match - The action to perform on a match.mismatch - The action to perform on a mismatch.Copyright © 1999-2018. 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.