Package org.apache.logging.log4j.core.filter
Log4j 2 Filter support.
Filter
plugins should use the
plugin category
Core
and the
element type
filter
.-
Interface Summary Interface Description Filterable Interface implemented by Classes that allow filtering to occur. -
Class Summary Class Description AbstractFilter Users should extend this class to implement filters.AbstractFilterable Enhances a Class by allowing it to contain Filters.AbstractFilterable.Builder<B extends AbstractFilterable.Builder<B>> Subclasses can extend this abstract Builder.BurstFilter TheBurstFilter
is a logging filter that regulates logging traffic.BurstFilter.Builder CompositeFilter Composes and invokes one or more filters.DynamicThresholdFilter Compares against a log level that is associated with a context value.LevelRangeFilter This filter returns theonMatch
result if the level in theLogEvent
is in the range of the configured min and max levels, otherwise it returnsonMismatch
value .MapFilter A Filter that operates on a Map.MarkerFilter This filter returns the onMatch result if the marker in the LogEvent is the same as or has the configured marker as a parent.RegexFilter This filter returns the onMatch result if the message matches the regular expression.ScriptFilter Returns the onMatch result if the script returns True and returns the onMisMatch value otherwise.StructuredDataFilter Filter based on data in a StructuredDataMessage.ThreadContextMapFilter Filter based on a value in the Thread Context Map (MDC).ThresholdFilter This filter returns the onMatch result if the level in the LogEvent is the same or more specific than the configured level and the onMismatch value otherwise.TimeFilter Filters events that fall within a specified time period in each day.