Class AbstractStyleNameConverter

    • Constructor Detail

      • AbstractStyleNameConverter

        protected AbstractStyleNameConverter​(String name,
                                             List<PatternFormatter> formatters,
                                             String styling)
        Constructs the converter.
        Parameters:
        formatters - The PatternFormatters to generate the text to manipulate.
        styling - The styling that should encapsulate the pattern.
    • Method Detail

      • newInstance

        protected static <T extends AbstractStyleNameConverter> T newInstance​(Class<T> asnConverterClass,
                                                                              String name,
                                                                              Configuration config,
                                                                              String[] options)
        Gets an instance of the class (called via reflection).
        Parameters:
        config - The current Configuration.
        options - The pattern options, may be null. If the first element is "short", only the first line of the throwable will be formatted.
        Returns:
        new instance of class or null
      • format

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