Package com.epam.common.logging
Class SecurityPatternLayout.Builder
java.lang.Object
com.epam.common.logging.SecurityPatternLayout.Builder
- All Implemented Interfaces:
org.apache.logging.log4j.core.util.Builder<SecurityPatternLayout>
- Enclosing class:
- SecurityPatternLayout
public static class SecurityPatternLayout.Builder
extends Object
implements org.apache.logging.log4j.core.util.Builder<SecurityPatternLayout>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()withAlwaysWriteExceptions(boolean alwaysWriteExceptions) withCharset(Charset charset) withConfiguration(org.apache.logging.log4j.core.config.Configuration configuration) withDisableAnsi(boolean disableAnsi) withFooter(String footer) withHeader(String header) withNoConsoleNoAnsi(boolean noConsoleNoAnsi) withPattern(String pattern) withPatternSelector(org.apache.logging.log4j.core.layout.PatternSelector patternSelector) withRegexReplacements(org.apache.logging.log4j.core.pattern.RegexReplacement[] regexReplacements) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
Method Details
-
withPattern
- Parameters:
pattern- The pattern. If not specified, defaults to DEFAULT_CONVERSION_PATTERN.
-
withPatternSelector
public SecurityPatternLayout.Builder withPatternSelector(org.apache.logging.log4j.core.layout.PatternSelector patternSelector) - Parameters:
patternSelector- Allows different patterns to be used based on some selection criteria.
-
withConfiguration
public SecurityPatternLayout.Builder withConfiguration(org.apache.logging.log4j.core.config.Configuration configuration) - Parameters:
configuration- The Configuration. Some Converters require access to the Interpolator.
-
withRegexReplacements
public SecurityPatternLayout.Builder withRegexReplacements(org.apache.logging.log4j.core.pattern.RegexReplacement[] regexReplacements) - Parameters:
regexReplacements- A Regex replacements
-
withCharset
- Parameters:
charset- The character set. The platform default is used if not specified.
-
withAlwaysWriteExceptions
- Parameters:
alwaysWriteExceptions- If"true"(default) exceptions are always written even if the pattern contains no exception tokens.
-
withDisableAnsi
- Parameters:
disableAnsi- If"true"(default is false), do not output ANSI escape codes
-
withNoConsoleNoAnsi
- Parameters:
noConsoleNoAnsi- If"true"(default is false) andSystem.console()is null, do not output ANSI escape codes
-
withHeader
- Parameters:
header- The footer to place at the top of the document, once.
-
build
- Specified by:
buildin interfaceorg.apache.logging.log4j.core.util.Builder<SecurityPatternLayout>
-