Class Patterns

java.lang.Object
org.apache.logging.log4j.core.util.Patterns

public final class Patterns extends Object
Pattern strings used throughout Log4j.
See Also:
  • Field Details

    • COMMA_SEPARATOR

      public static final String COMMA_SEPARATOR
      A pattern string for comma separated lists with optional whitespace.
    • COMMA_SPACE_SEPARATOR

      public static final String COMMA_SPACE_SEPARATOR
      A pattern string for lists separated by commas with optional whitespace or just whitespace.
    • WHITESPACE

      public static final String WHITESPACE
      The whitespace pattern string.
      See Also:
  • Method Details

    • toWhitespaceSeparator

      public static String toWhitespaceSeparator(String separator)
      Creates a pattern string for separator surrounded by whitespace.
      Parameters:
      separator - The separator.
      Returns:
      a pattern for separator surrounded by whitespace.