Package org.apache.ofbiz.base.log4j
Class OFBizDynamicThresholdFilter
java.lang.Object
org.apache.logging.log4j.core.AbstractLifeCycle
org.apache.logging.log4j.core.filter.AbstractFilter
org.apache.ofbiz.base.log4j.OFBizDynamicThresholdFilter
- All Implemented Interfaces:
org.apache.logging.log4j.core.Filter
,org.apache.logging.log4j.core.LifeCycle
,org.apache.logging.log4j.core.LifeCycle2
@Plugin(name="OFBizDynamicThresholdFilter",
category="Core",
elementType="filter",
printObject=true)
public final class OFBizDynamicThresholdFilter
extends org.apache.logging.log4j.core.filter.AbstractFilter
Adapted from
DynamicThresholdFilter
Check for active individual levels instead of default threshold-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.logging.log4j.core.filter.AbstractFilter
org.apache.logging.log4j.core.filter.AbstractFilter.AbstractFilterBuilder<B extends org.apache.logging.log4j.core.filter.AbstractFilter.AbstractFilterBuilder<B>>
Nested classes/interfaces inherited from interface org.apache.logging.log4j.core.Filter
org.apache.logging.log4j.core.Filter.Result
Nested classes/interfaces inherited from interface org.apache.logging.log4j.core.LifeCycle
org.apache.logging.log4j.core.LifeCycle.State
-
Field Summary
Fields inherited from class org.apache.logging.log4j.core.filter.AbstractFilter
onMatch, onMismatch
Fields inherited from class org.apache.logging.log4j.core.AbstractLifeCycle
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGER
Fields inherited from interface org.apache.logging.log4j.core.Filter
ELEMENT_TYPE, EMPTY_ARRAY
-
Method Summary
Modifier and TypeMethodDescriptionstatic OFBizDynamicThresholdFilter
createFilter
(String key, org.apache.logging.log4j.core.util.KeyValuePair[] pairs, org.apache.logging.log4j.core.Filter.Result onMatch, org.apache.logging.log4j.core.Filter.Result onMismatch) Creates a DynamicThresholdFilter.boolean
org.apache.logging.log4j.core.Filter.Result
filter
(org.apache.logging.log4j.core.LogEvent event) org.apache.logging.log4j.core.Filter.Result
filter
(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, Object msg, Throwable t) org.apache.logging.log4j.core.Filter.Result
filter
(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0) org.apache.logging.log4j.core.Filter.Result
filter
(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object... params) org.apache.logging.log4j.core.Filter.Result
filter
(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1) org.apache.logging.log4j.core.Filter.Result
filter
(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2) org.apache.logging.log4j.core.Filter.Result
filter
(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2, Object p3) org.apache.logging.log4j.core.Filter.Result
filter
(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2, Object p3, Object p4) org.apache.logging.log4j.core.Filter.Result
filter
(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) org.apache.logging.log4j.core.Filter.Result
filter
(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) org.apache.logging.log4j.core.Filter.Result
filter
(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) org.apache.logging.log4j.core.Filter.Result
filter
(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) org.apache.logging.log4j.core.Filter.Result
filter
(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) org.apache.logging.log4j.core.Filter.Result
filter
(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, org.apache.logging.log4j.message.Message msg, Throwable t) getKey()
int
hashCode()
toString()
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilter
equalsImpl, getOnMatch, getOnMismatch, hashCodeImpl
Methods inherited from class org.apache.logging.log4j.core.AbstractLifeCycle
getState, getStatusLogger, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, start, stop, stop, stop
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.logging.log4j.core.Filter
filter
Methods inherited from interface org.apache.logging.log4j.core.LifeCycle
getState, initialize, isStarted, isStopped, start, stop
-
Method Details
-
createFilter
@PluginFactory public static OFBizDynamicThresholdFilter createFilter(@PluginAttribute("key") String key, @PluginElement("Pairs") org.apache.logging.log4j.core.util.KeyValuePair[] pairs, @PluginAttribute("onMatch") org.apache.logging.log4j.core.Filter.Result onMatch, @PluginAttribute("onMismatch") org.apache.logging.log4j.core.Filter.Result onMismatch) Creates a DynamicThresholdFilter.- Parameters:
key
- The name of the key to compare.pairs
- An array of value and Level pairs.onMatch
- The action to perform if a match occurs.onMismatch
- The action to perform if no match occurs.- Returns:
- The DynamicThresholdFilter.
-
equals
-
filter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.LogEvent event) - Specified by:
filter
in interfaceorg.apache.logging.log4j.core.Filter
- Overrides:
filter
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-
filter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, org.apache.logging.log4j.message.Message msg, Throwable t) - Specified by:
filter
in interfaceorg.apache.logging.log4j.core.Filter
- Overrides:
filter
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-
filter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, Object msg, Throwable t) - Specified by:
filter
in interfaceorg.apache.logging.log4j.core.Filter
- Overrides:
filter
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-
filter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object... params) - Specified by:
filter
in interfaceorg.apache.logging.log4j.core.Filter
- Overrides:
filter
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-
filter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0) - Specified by:
filter
in interfaceorg.apache.logging.log4j.core.Filter
- Overrides:
filter
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-
filter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1) - Specified by:
filter
in interfaceorg.apache.logging.log4j.core.Filter
- Overrides:
filter
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-
filter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2) - Specified by:
filter
in interfaceorg.apache.logging.log4j.core.Filter
- Overrides:
filter
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-
filter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2, Object p3) - Specified by:
filter
in interfaceorg.apache.logging.log4j.core.Filter
- Overrides:
filter
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-
filter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2, Object p3, Object p4) - Specified by:
filter
in interfaceorg.apache.logging.log4j.core.Filter
- Overrides:
filter
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-
filter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) - Specified by:
filter
in interfaceorg.apache.logging.log4j.core.Filter
- Overrides:
filter
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-
filter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) - Specified by:
filter
in interfaceorg.apache.logging.log4j.core.Filter
- Overrides:
filter
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-
filter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) - Specified by:
filter
in interfaceorg.apache.logging.log4j.core.Filter
- Overrides:
filter
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-
filter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) - Specified by:
filter
in interfaceorg.apache.logging.log4j.core.Filter
- Overrides:
filter
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-
filter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String msg, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) - Specified by:
filter
in interfaceorg.apache.logging.log4j.core.Filter
- Overrides:
filter
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-
getKey
-
getLevelMap
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classorg.apache.logging.log4j.core.filter.AbstractFilter
-