public static class LevelMatchFilter.Builder extends AbstractFilter.AbstractFilterBuilder<LevelMatchFilter.Builder> implements Builder<LevelMatchFilter>
ATTR_ON_MATCH, ATTR_ON_MISMATCH
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LevelMatchFilter |
build()
Builds the object after all configuration has been set.
|
LevelMatchFilter.Builder |
setLevel(org.apache.logging.log4j.Level level)
Sets the logging level to use.
|
asBuilder, getOnMatch, getOnMismatch, setOnMatch, setOnMismatch
public Builder()
public LevelMatchFilter.Builder setLevel(org.apache.logging.log4j.Level level)
level
- the logging level to use.public LevelMatchFilter build()
Builder
build
in interface Builder<LevelMatchFilter>
Copyright © 1999-2021 The 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.