@Plugin(name="SimulationThresholdFilter",
category="Core",
elementType="filter",
printObject=true)
public final class SimulationThresholdFilter
extends 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>>
Modifier and Type | Field and Description |
---|---|
static String |
SIMUALTION_APPLICATION_LEVEL
fr.ifremer.isisfish package log level. |
static String |
SIMULATION_ID
Simulation id.
|
static String |
SIMULATION_LIB_LEVEL
org.nuiton package log level. |
static String |
SIMULATION_LOG_FILE
Simulation log file for lof4j file appender (only if simulationId is defined)
|
static String |
SIMULATION_SCRIPT_LEVEL
Script log level.
|
Modifier and Type | Method and Description |
---|---|
static SimulationThresholdFilter |
createFilter(org.apache.logging.log4j.Level defaultThreshold,
org.apache.logging.log4j.core.Filter.Result onMatch,
org.apache.logging.log4j.core.Filter.Result onMismatch)
Create the DynamicThresholdFilter.
|
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,
org.apache.logging.log4j.message.Message 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,
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... params) |
equalsImpl, filter, filter, filter, filter, filter, filter, filter, filter, filter, filter, getOnMatch, getOnMismatch, hashCodeImpl, toString
getState, getStatusLogger, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, start, stop, stop, stop
public static final String SIMULATION_ID
public static final String SIMULATION_LOG_FILE
public static final String SIMUALTION_APPLICATION_LEVEL
fr.ifremer.isisfish
package log level.public static final String SIMULATION_LIB_LEVEL
org.nuiton
package log level.public static final String SIMULATION_SCRIPT_LEVEL
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)
filter
in interface org.apache.logging.log4j.core.Filter
filter
in class org.apache.logging.log4j.core.filter.AbstractFilter
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)
filter
in interface org.apache.logging.log4j.core.Filter
filter
in class org.apache.logging.log4j.core.filter.AbstractFilter
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)
filter
in interface org.apache.logging.log4j.core.Filter
filter
in class org.apache.logging.log4j.core.filter.AbstractFilter
public org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.LogEvent event)
filter
in interface org.apache.logging.log4j.core.Filter
filter
in class org.apache.logging.log4j.core.filter.AbstractFilter
@PluginFactory public static SimulationThresholdFilter createFilter(@PluginAttribute(value="defaultThreshold") org.apache.logging.log4j.Level defaultThreshold, @PluginAttribute(value="onMatch") org.apache.logging.log4j.core.Filter.Result onMatch, @PluginAttribute(value="onMismatch") org.apache.logging.log4j.core.Filter.Result onMismatch)
defaultThreshold
- The default Level.onMatch
- The action to perform if a match occurs.onMismatch
- The action to perform if no match occurs.Copyright © 1999–2020 CodeLutin. All rights reserved.