Class LiteralPatternConverter

All Implemented Interfaces:
ArrayPatternConverter, PatternConverter

public final class LiteralPatternConverter extends LogEventPatternConverter implements ArrayPatternConverter
Formats a string literal.
  • Constructor Details

    • LiteralPatternConverter

      public LiteralPatternConverter(Configuration config, String literal, boolean convertBackslashes)
      Create a new instance.
      Parameters:
      config - The Configuration.
      literal - string literal.
      convertBackslashes - if true, backslash characters are treated as escape characters and character sequences like "\" followed by "t" (backslash+t) are converted to special characters like '\t' (tab).
  • Method Details