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.AbstractFilter.AbstractFilterBuilder<B extends AbstractFilter.AbstractFilterBuilder<B>> 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.DenyAllFilter This filter causes all logging events to be dropped.DenyAllFilter.Builder DynamicThresholdFilter Compares against a log level that is associated with a context value.LevelMatchFilter This filter returns the onMatch result if the logging level in the event matches the specified logging level exactly.LevelMatchFilter.Builder 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.NoMarkerFilter This filter returns the onMatch result if there is no marker in the LogEvent.NoMarkerFilter.Builder 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.StringMatchFilter This filter returns the onMatch result if the logging level in the event matches the specified logging level exactly.StringMatchFilter.Builder 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.