Class SeparatorParser

java.lang.Object
net.logstash.logback.encoder.SeparatorParser

public class SeparatorParser extends Object
  • Method Details

    • parseSeparator

      public static String parseSeparator(String separator)
      Parses the given separator string. The following values have special meaning:
      • null or empty string = no separator.
      • "SYSTEM}" = operating system new line.
      • "UNIX" = unix line ending (\n).
      • "WINDOWS" = windows line ending (\r\n).

      Any other value will be returned as-is.

      Parameters:
      separator - the separator format
      Returns:
      the actual separator string after parsing