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 Details

    • withPattern

      public SecurityPatternLayout.Builder withPattern(String pattern)
      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

      public SecurityPatternLayout.Builder withCharset(Charset charset)
      Parameters:
      charset - The character set. The platform default is used if not specified.
    • withAlwaysWriteExceptions

      public SecurityPatternLayout.Builder withAlwaysWriteExceptions(boolean alwaysWriteExceptions)
      Parameters:
      alwaysWriteExceptions - If "true" (default) exceptions are always written even if the pattern contains no exception tokens.
    • withDisableAnsi

      public SecurityPatternLayout.Builder withDisableAnsi(boolean disableAnsi)
      Parameters:
      disableAnsi - If "true" (default is false), do not output ANSI escape codes
    • withNoConsoleNoAnsi

      public SecurityPatternLayout.Builder withNoConsoleNoAnsi(boolean noConsoleNoAnsi)
      Parameters:
      noConsoleNoAnsi - If "true" (default is false) and System.console() is null, do not output ANSI escape codes
    • withHeader

      public SecurityPatternLayout.Builder withHeader(String header)
      Parameters:
      header - The footer to place at the top of the document, once.
    • withFooter

      public SecurityPatternLayout.Builder withFooter(String footer)
      Parameters:
      footer - The footer to place at the bottom of the document, once.
    • build

      public SecurityPatternLayout build()
      Specified by:
      build in interface org.apache.logging.log4j.core.util.Builder<SecurityPatternLayout>