Class LevelPatternSelector.Builder
java.lang.Object
org.apache.logging.log4j.core.layout.LevelPatternSelector.Builder
- All Implemented Interfaces:
Builder<LevelPatternSelector>
- Enclosing class:
- LevelPatternSelector
public static class LevelPatternSelector.Builder
extends Object
implements Builder<LevelPatternSelector>
Custom MarkerPatternSelector builder. Use the
builder factory method
to create this.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the object after all configuration has been set.setAlwaysWriteExceptions
(boolean alwaysWriteExceptions) setConfiguration
(Configuration configuration) setDefaultPattern
(String defaultPattern) setDisableAnsi
(boolean disableAnsi) setNoConsoleNoAnsi
(boolean noConsoleNoAnsi) setProperties
(PatternMatch[] properties) 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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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<LevelPatternSelector>
- Returns:
- the configured instance.
-
setProperties
-
setDefaultPattern
-
setAlwaysWriteExceptions
-
setDisableAnsi
-
setNoConsoleNoAnsi
-
setConfiguration
-