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