Class LevelMatchFilter.Builder
- java.lang.Object
-
- org.apache.logging.log4j.core.filter.AbstractFilter.AbstractFilterBuilder<LevelMatchFilter.Builder>
-
- org.apache.logging.log4j.core.filter.LevelMatchFilter.Builder
-
- All Implemented Interfaces:
Builder<LevelMatchFilter>
- Enclosing class:
- LevelMatchFilter
public static class LevelMatchFilter.Builder extends AbstractFilter.AbstractFilterBuilder<LevelMatchFilter.Builder> implements Builder<LevelMatchFilter>
-
-
Field Summary
Fields Modifier and Type Field Description private Level
level
-
Fields inherited from class org.apache.logging.log4j.core.filter.AbstractFilter.AbstractFilterBuilder
ATTR_ON_MATCH, ATTR_ON_MISMATCH
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LevelMatchFilter
build()
Builds the object after all configuration has been set.LevelMatchFilter.Builder
setLevel(Level level)
Sets the logging level to use.-
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilter.AbstractFilterBuilder
asBuilder, getOnMatch, getOnMismatch, setOnMatch, setOnMismatch
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
-
-
-
Field Detail
-
level
@PluginBuilderAttribute private Level level
-
-
Method Detail
-
setLevel
public LevelMatchFilter.Builder setLevel(Level level)
Sets the logging level to use.- Parameters:
level
- the logging level to use.- Returns:
- this
-
build
public LevelMatchFilter build()
Description copied from interface:Builder
Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
build
in interfaceBuilder<LevelMatchFilter>
- Returns:
- the configured instance.
-
-