public static class SecurityPatternLayout.Builder extends Object
Modifier and Type | Method and Description |
---|---|
SecurityPatternLayout |
build() |
SecurityPatternLayout.Builder |
withAlwaysWriteExceptions(boolean alwaysWriteExceptions) |
SecurityPatternLayout.Builder |
withCharset(Charset charset) |
SecurityPatternLayout.Builder |
withConfiguration(Configuration configuration) |
SecurityPatternLayout.Builder |
withDisableAnsi(boolean disableAnsi) |
SecurityPatternLayout.Builder |
withFooter(String footer) |
SecurityPatternLayout.Builder |
withHeader(String header) |
SecurityPatternLayout.Builder |
withNoConsoleNoAnsi(boolean noConsoleNoAnsi) |
SecurityPatternLayout.Builder |
withPattern(String pattern) |
SecurityPatternLayout.Builder |
withPatternSelector(PatternSelector patternSelector) |
SecurityPatternLayout.Builder |
withRegexReplacements(RegexReplacement[] regexReplacements) |
public SecurityPatternLayout.Builder withPattern(String pattern)
pattern
- The pattern. If not specified, defaults to DEFAULT_CONVERSION_PATTERN.public SecurityPatternLayout.Builder withPatternSelector(PatternSelector patternSelector)
patternSelector
- Allows different patterns to be used based on some selection criteria.public SecurityPatternLayout.Builder withConfiguration(Configuration configuration)
configuration
- The Configuration. Some Converters require access to the Interpolator.public SecurityPatternLayout.Builder withRegexReplacements(RegexReplacement[] regexReplacements)
regexReplacements
- A Regex replacementspublic SecurityPatternLayout.Builder withCharset(Charset charset)
charset
- The character set. The platform default is used if not specified.public SecurityPatternLayout.Builder withAlwaysWriteExceptions(boolean alwaysWriteExceptions)
alwaysWriteExceptions
- If "true"
(default) exceptions are always written even if the pattern contains no exception tokens.public SecurityPatternLayout.Builder withDisableAnsi(boolean disableAnsi)
disableAnsi
- If "true"
(default is false), do not output ANSI escape codespublic SecurityPatternLayout.Builder withNoConsoleNoAnsi(boolean noConsoleNoAnsi)
noConsoleNoAnsi
- If "true"
(default is false) and System.console()
is null, do not output ANSI escape codespublic SecurityPatternLayout.Builder withHeader(String header)
header
- The footer to place at the top of the document, once.public SecurityPatternLayout.Builder withFooter(String footer)
footer
- The footer to place at the bottom of the document, once.public SecurityPatternLayout build()
Copyright © 2000–2022 EPAM Systems. All rights reserved.