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
FieldsFields inherited from class AbstractFilter.AbstractFilterBuilder
ATTR_ON_MATCH, ATTR_ON_MISMATCH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the object after all configuration has been set.Sets the logging level to use.Methods inherited from class AbstractFilter.AbstractFilterBuilder
asBuilder, getOnMatch, getOnMismatch, setOnMatch, setOnMismatchMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
getErrorPrefix, isValid
-
Field Details
-
level
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setLevel
Sets the logging level to use.- Parameters:
level- the logging level to use.- Returns:
- this
-
build
Description copied from interface:BuilderBuilds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
buildin interfaceBuilder<LevelMatchFilter>- Returns:
- the configured instance.
-