public static class LevelPatternSelector.Builder extends java.lang.Object implements Builder<LevelPatternSelector>
builder factory method
to create this.Modifier and Type | Field and Description |
---|---|
private boolean |
alwaysWriteExceptions |
private Configuration |
configuration |
private java.lang.String |
defaultPattern |
private boolean |
disableAnsi |
private boolean |
noConsoleNoAnsi |
private PatternMatch[] |
properties |
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(java.lang.String defaultPattern) |
LevelPatternSelector.Builder |
setDisableAnsi(boolean disableAnsi) |
LevelPatternSelector.Builder |
setNoConsoleNoAnsi(boolean noConsoleNoAnsi) |
LevelPatternSelector.Builder |
setProperties(PatternMatch[] properties) |
@PluginElement(value="PatternMatch") private PatternMatch[] properties
@PluginBuilderAttribute(value="defaultPattern") private java.lang.String defaultPattern
@PluginBuilderAttribute(value="alwaysWriteExceptions") private boolean alwaysWriteExceptions
@PluginBuilderAttribute(value="disableAnsi") private boolean disableAnsi
@PluginBuilderAttribute(value="noConsoleNoAnsi") private boolean noConsoleNoAnsi
@PluginConfiguration private Configuration configuration
public LevelPatternSelector build()
Builder
build
in interface Builder<LevelPatternSelector>
public LevelPatternSelector.Builder setProperties(PatternMatch[] properties)
public LevelPatternSelector.Builder setDefaultPattern(java.lang.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)