public static class LevelPatternSelector.Builder extends Object implements Builder<LevelPatternSelector>
builder factory method
to create this.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LevelPatternSelector |
build()
Builds the object after all configuration has been set.
|
LevelPatternSelector.Builder |
setAlwaysWriteExceptions(boolean alwaysWriteExceptions) |
LevelPatternSelector.Builder |
setConfiguration(Configuration configuration) |
LevelPatternSelector.Builder |
setDefaultPattern(String defaultPattern) |
LevelPatternSelector.Builder |
setDisableAnsi(boolean disableAnsi) |
LevelPatternSelector.Builder |
setNoConsoleNoAnsi(boolean noConsoleNoAnsi) |
LevelPatternSelector.Builder |
setProperties(PatternMatch[] properties) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorPrefix, isValid
public LevelPatternSelector build()
Builder
build
in interface Builder<LevelPatternSelector>
public LevelPatternSelector.Builder setProperties(PatternMatch[] properties)
public LevelPatternSelector.Builder setDefaultPattern(String defaultPattern)
public LevelPatternSelector.Builder setAlwaysWriteExceptions(boolean alwaysWriteExceptions)
public LevelPatternSelector.Builder setDisableAnsi(boolean disableAnsi)
public LevelPatternSelector.Builder setNoConsoleNoAnsi(boolean noConsoleNoAnsi)
public LevelPatternSelector.Builder setConfiguration(Configuration configuration)
Copyright © 1999-2023 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.