public static class PatternLayout.Builder extends Object implements Builder<PatternLayout>
builder factory method
to create this.Modifier and Type | Method and Description |
---|---|
PatternLayout |
build()
Builds the plugin object after all configuration has been set.
|
PatternLayout.Builder |
withAlwaysWriteExceptions(boolean alwaysWriteExceptions) |
PatternLayout.Builder |
withCharset(Charset charset) |
PatternLayout.Builder |
withConfiguration(Configuration configuration) |
PatternLayout.Builder |
withFooter(String footer) |
PatternLayout.Builder |
withHeader(String header) |
PatternLayout.Builder |
withNoConsoleNoAnsi(boolean noConsoleNoAnsi) |
PatternLayout.Builder |
withPattern(String pattern) |
PatternLayout.Builder |
withRegexReplacement(RegexReplacement regexReplacement) |
public PatternLayout.Builder withPattern(String pattern)
public PatternLayout.Builder withConfiguration(Configuration configuration)
public PatternLayout.Builder withRegexReplacement(RegexReplacement regexReplacement)
public PatternLayout.Builder withCharset(Charset charset)
public PatternLayout.Builder withAlwaysWriteExceptions(boolean alwaysWriteExceptions)
public PatternLayout.Builder withNoConsoleNoAnsi(boolean noConsoleNoAnsi)
public PatternLayout.Builder withHeader(String header)
public PatternLayout.Builder withFooter(String footer)
public PatternLayout build()
Builder
build
in interface Builder<PatternLayout>
Copyright © 1999-2021 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.