Class ForgeHighlight


  • @Plugin(name="highlightForge",
            category="Converter")
    public class ForgeHighlight
    extends java.lang.Object
    A wrapper for HighlightConverter that auto-disables ANSI when the terminal doesn't support it. Ansi support is determined by TerminalConsoleAppender
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.apache.logging.log4j.Logger LOGGER  
    • Constructor Summary

      Constructors 
      Constructor Description
      ForgeHighlight()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.logging.log4j.core.pattern.HighlightConverter newInstance​(org.apache.logging.log4j.core.config.Configuration config, java.lang.String[] options)
      Gets a new instance of the HighlightErrorConverter with the specified options.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        protected static final org.apache.logging.log4j.Logger LOGGER
    • Constructor Detail

      • ForgeHighlight

        public ForgeHighlight()
    • Method Detail

      • newInstance

        @Nullable
        public static org.apache.logging.log4j.core.pattern.HighlightConverter newInstance​(org.apache.logging.log4j.core.config.Configuration config,
                                                                                           java.lang.String[] options)
        Gets a new instance of the HighlightErrorConverter with the specified options.
        Parameters:
        config - The current configuration
        options - The pattern options
        Returns:
        The new instance