Class NamePatternConverter

All Implemented Interfaces:
Direct Known Subclasses:
ClassNamePatternConverter, LoggerPatternConverter

public abstract class NamePatternConverter extends LogEventPatternConverter
Abstract base class for other pattern converters which can return only parts of their name.
  • Constructor Details

    • NamePatternConverter

      protected NamePatternConverter(String name, String style, String[] options)
      name - name of converter.
      style - style name for associated output.
      options - options, may be null, first element will be interpreted as an abbreviation pattern.
  • Method Details

    • abbreviate

      protected final void abbreviate(String original, StringBuilder destination)
      Abbreviate name in string buffer.
      original - string containing name.
      destination - the StringBuilder to write to