Class MessagePatternConverter

All Implemented Interfaces:

@Plugin(name="MessagePatternConverter", category="Converter") public class MessagePatternConverter extends LogEventPatternConverter
Returns the event's rendered message in a StringBuilder.
  • Method Details

    • newInstance

      public static MessagePatternConverter newInstance(Configuration config, String[] options)
      Obtains an instance of pattern converter.
      config - The Configuration.
      options - options, may be null.
      instance of pattern converter.
    • format

      public void format(LogEvent event, StringBuilder toAppendTo)
      Description copied from class: LogEventPatternConverter
      Formats an event into a string buffer.
      Specified by:
      format in class LogEventPatternConverter
      event - event to format, may not be null.
      toAppendTo - string buffer to which the formatted event will be appended. May not be null.