Package | Description |
---|---|
org.apache.logging.log4j.core |
Implementation of Log4j 2.
|
org.apache.logging.log4j.core.filter |
Log4j 2 Filter support.
|
Modifier and Type | Method and Description |
---|---|
Filter.Result |
Filter.filter(LogEvent event)
Filter an event.
|
Filter.Result |
Filter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.message.Message msg,
Throwable t)
Filter an event.
|
Filter.Result |
Filter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
Object msg,
Throwable t)
Filter an event.
|
Filter.Result |
Filter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
String msg,
Object... params)
Filter an event.
|
Filter.Result |
Filter.getOnMatch()
Returns the result that should be returned when the filter matches the event.
|
Filter.Result |
Filter.getOnMismatch()
Returns the result that should be returned when the filter does not match the event.
|
static Filter.Result |
Filter.Result.toResult(String name)
Returns the Result for the given string.
|
static Filter.Result |
Filter.Result.toResult(String name,
Filter.Result defaultResult)
Returns the Result for the given string.
|
static Filter.Result |
Filter.Result.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Filter.Result[] |
Filter.Result.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Filter.Result |
Filter.Result.toResult(String name,
Filter.Result defaultResult)
Returns the Result for the given string.
|
Modifier and Type | Field and Description |
---|---|
protected Filter.Result |
AbstractFilter.onMatch
The onMatch Result.
|
protected Filter.Result |
AbstractFilter.onMismatch
The onMismatch Result.
|
Modifier and Type | Method and Description |
---|---|
Filter.Result |
StructuredDataFilter.filter(LogEvent event) |
Filter.Result |
ThresholdFilter.filter(LogEvent event) |
Filter.Result |
MarkerFilter.filter(LogEvent event) |
Filter.Result |
AbstractFilter.filter(LogEvent event)
Context Filter method.
|
Filter.Result |
BurstFilter.filter(LogEvent event) |
Filter.Result |
ThreadContextMapFilter.filter(LogEvent event) |
Filter.Result |
CompositeFilter.filter(LogEvent event)
Filter an event.
|
Filter.Result |
TimeFilter.filter(LogEvent event) |
Filter.Result |
DynamicThresholdFilter.filter(LogEvent event) |
Filter.Result |
MapFilter.filter(LogEvent event) |
Filter.Result |
RegexFilter.filter(LogEvent event) |
Filter.Result |
StructuredDataFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.message.Message msg,
Throwable t) |
Filter.Result |
ThresholdFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.message.Message msg,
Throwable t) |
Filter.Result |
MarkerFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.message.Message msg,
Throwable t) |
Filter.Result |
AbstractFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.message.Message msg,
Throwable t)
Appender Filter method.
|
Filter.Result |
BurstFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.message.Message msg,
Throwable t) |
Filter.Result |
ThreadContextMapFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.message.Message msg,
Throwable t) |
Filter.Result |
CompositeFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.message.Message msg,
Throwable t)
Filter an event.
|
Filter.Result |
DynamicThresholdFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.message.Message msg,
Throwable t) |
Filter.Result |
MapFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.message.Message msg,
Throwable t) |
Filter.Result |
RegexFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.message.Message msg,
Throwable t) |
Filter.Result |
ThresholdFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
Object msg,
Throwable t) |
Filter.Result |
MarkerFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
Object msg,
Throwable t) |
Filter.Result |
AbstractFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
Object msg,
Throwable t)
Appender Filter method.
|
Filter.Result |
BurstFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
Object msg,
Throwable t) |
Filter.Result |
ThreadContextMapFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
Object msg,
Throwable t) |
Filter.Result |
CompositeFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
Object msg,
Throwable t)
Filter an event.
|
Filter.Result |
DynamicThresholdFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
Object msg,
Throwable t) |
Filter.Result |
RegexFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
Object msg,
Throwable t) |
Filter.Result |
ThresholdFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
String msg,
Object... params) |
Filter.Result |
MarkerFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
String msg,
Object... params) |
Filter.Result |
AbstractFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
String msg,
Object... params)
Appender Filter method.
|
Filter.Result |
BurstFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
String msg,
Object... params) |
Filter.Result |
ThreadContextMapFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
String msg,
Object... params) |
Filter.Result |
CompositeFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
String msg,
Object... params)
Filter an event.
|
Filter.Result |
DynamicThresholdFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
String msg,
Object... params) |
Filter.Result |
RegexFilter.filter(Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
String msg,
Object... params) |
protected Filter.Result |
StructuredDataFilter.filter(org.apache.logging.log4j.message.StructuredDataMessage message) |
Filter.Result |
AbstractFilter.getOnMatch()
Returns the Result to be returned when a match occurs.
|
Filter.Result |
CompositeFilter.getOnMatch()
Returns the result that should be returned when the filter matches the event.
|
Filter.Result |
AbstractFilter.getOnMismatch()
Returns the Result to be returned when a match does not occur.
|
Filter.Result |
CompositeFilter.getOnMismatch()
Returns the result that should be returned when the filter does not match the event.
|
Modifier and Type | Method and Description |
---|---|
static StructuredDataFilter |
StructuredDataFilter.createFilter(KeyValuePair[] pairs,
String oper,
Filter.Result match,
Filter.Result mismatch)
Create the StructuredDataFilter.
|
static ThreadContextMapFilter |
ThreadContextMapFilter.createFilter(KeyValuePair[] pairs,
String oper,
Filter.Result match,
Filter.Result mismatch) |
static MapFilter |
MapFilter.createFilter(KeyValuePair[] pairs,
String oper,
Filter.Result match,
Filter.Result mismatch) |
static ThresholdFilter |
ThresholdFilter.createFilter(org.apache.logging.log4j.Level level,
Filter.Result match,
Filter.Result mismatch)
Create a ThresholdFilter.
|
static MarkerFilter |
MarkerFilter.createFilter(String marker,
Filter.Result match,
Filter.Result mismatch)
Create the MarkerFilter.
|
static DynamicThresholdFilter |
DynamicThresholdFilter.createFilter(String key,
KeyValuePair[] pairs,
org.apache.logging.log4j.Level defaultThreshold,
Filter.Result onMatch,
Filter.Result onMismatch)
Create the DynamicThresholdFilter.
|
static RegexFilter |
RegexFilter.createFilter(String regex,
String[] patternFlags,
Boolean useRawMsg,
Filter.Result match,
Filter.Result mismatch)
Create a Filter that matches a regular expression.
|
static TimeFilter |
TimeFilter.createFilter(String start,
String end,
String tz,
Filter.Result match,
Filter.Result mismatch)
Create a TimeFilter.
|
BurstFilter.Builder |
BurstFilter.Builder.setOnMatch(Filter.Result onMatch)
Sets the Result to return when the filter matches.
|
BurstFilter.Builder |
BurstFilter.Builder.setOnMismatch(Filter.Result onMismatch)
Sets the Result to return when the filter does not match.
|
Constructor and Description |
---|
AbstractFilter(Filter.Result onMatch,
Filter.Result onMismatch)
Constructor that allows the onMatch and onMismatch actions to be set.
|
MapFilter(Map<String,List<String>> map,
boolean oper,
Filter.Result onMatch,
Filter.Result onMismatch) |
ThreadContextMapFilter(Map<String,List<String>> pairs,
boolean oper,
Filter.Result onMatch,
Filter.Result onMismatch) |
Copyright © 1999-2021 Apache Software Foundation. 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.