Class ClassNamePatternConverter

All Implemented Interfaces:
LocationAware, PatternConverter

@Plugin(name="ClassNamePatternConverter", category="Converter") public final class ClassNamePatternConverter extends NamePatternConverter implements LocationAware
Formats the class name of the site of the logging request.
  • Method Details

    • newInstance

      public static ClassNamePatternConverter newInstance(String[] options)
      Gets an instance of ClassNamePatternConverter.
      Parameters:
      options - options, may be null.
      Returns:
      instance of pattern converter.
    • format

      public void format(LogEvent event, StringBuilder toAppendTo)
      Format a logging event.
      Specified by:
      format in class LogEventPatternConverter
      Parameters:
      event - event to format.
      toAppendTo - string buffer to which class name will be appended.
    • requiresLocation

      public boolean requiresLocation()
      Specified by:
      requiresLocation in interface LocationAware