Class Patterns


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

      Fields 
      Modifier and Type Field Description
      static java.lang.String COMMA_SEPARATOR
      A pattern string for comma separated lists with optional whitespace.
      static java.lang.String WHITESPACE
      The whitespace pattern string.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String toWhitespaceSeparator​(java.lang.String separator)
      Creates a pattern string for separator surrounded by whitespace.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COMMA_SEPARATOR

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

        public static final java.lang.String WHITESPACE
        The whitespace pattern string.
        See Also:
        Constant Field Values
    • Method Detail

      • toWhitespaceSeparator

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