Class StripAnsiConverter

java.lang.Object
org.apache.logging.log4j.core.pattern.AbstractPatternConverter
org.apache.logging.log4j.core.pattern.LogEventPatternConverter
cn.ycraft.limbo.logging.StripAnsiConverter
All Implemented Interfaces:
org.apache.logging.log4j.core.pattern.PatternConverter

@Plugin(name="stripAnsi", category="Converter") public class StripAnsiConverter extends org.apache.logging.log4j.core.pattern.LogEventPatternConverter
Strip Format Converter. Based on Paper's patch
  • Field Summary

    Fields inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter

    LOGGER

    Fields inherited from interface org.apache.logging.log4j.core.pattern.PatternConverter

    CATEGORY
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    StripAnsiConverter(List<org.apache.logging.log4j.core.pattern.PatternFormatter> formatters)
    Constructs an instance of StripAnsiConverter.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    format(org.apache.logging.log4j.core.LogEvent event, StringBuilder toAppendTo)
     
    newInstance(org.apache.logging.log4j.core.config.Configuration config, String[] options)
    Creates a new Instance of this Converter.

    Methods inherited from class org.apache.logging.log4j.core.pattern.LogEventPatternConverter

    emptyVariableOutput, format, handlesThrowable, isVariable

    Methods inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter

    getName, getStyleClass

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StripAnsiConverter

      protected StripAnsiConverter(List<org.apache.logging.log4j.core.pattern.PatternFormatter> formatters)
      Constructs an instance of StripAnsiConverter.
  • Method Details

    • format

      public void format(org.apache.logging.log4j.core.LogEvent event, StringBuilder toAppendTo)
      Specified by:
      format in class org.apache.logging.log4j.core.pattern.LogEventPatternConverter
    • newInstance

      public static StripAnsiConverter newInstance(org.apache.logging.log4j.core.config.Configuration config, String[] options)
      Creates a new Instance of this Converter.
      Parameters:
      config - the configuration
      options - the options
      Returns:
      a new instance