org.springframework.boot.logging.log4j2

Class WhitespaceThrowablePatternConverter

  • java.lang.Object
    • org.apache.logging.log4j.core.pattern.AbstractPatternConverter
      • org.apache.logging.log4j.core.pattern.LogEventPatternConverter
        • org.apache.logging.log4j.core.pattern.ThrowablePatternConverter
          • org.springframework.boot.logging.log4j2.WhitespaceThrowablePatternConverter
  • All Implemented Interfaces:
    org.apache.logging.log4j.core.pattern.PatternConverter


    @Plugin(name="WhitespaceThrowablePatternConverter",
            category="Converter")
    public final class WhitespaceThrowablePatternConverter
    extends org.apache.logging.log4j.core.pattern.ThrowablePatternConverter
    ThrowablePatternConverter that adds some additional whitespace around the stack trace.
    Since:
    1.3.0
    Author:
    Vladimir Tsanev
    • Field Summary

      • Fields inherited from class org.apache.logging.log4j.core.pattern.ThrowablePatternConverter

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

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

        CATEGORY
    • Method Detail

      • format

        public void format(org.apache.logging.log4j.core.LogEvent event,
                           StringBuilder buffer)
        Overrides:
        format in class org.apache.logging.log4j.core.pattern.ThrowablePatternConverter
      • newInstance

        public static WhitespaceThrowablePatternConverter newInstance(String[] options)
        Creates a new instance of the class. Required by Log4J2.
        Parameters:
        options - pattern options, may be null. If first element is "short", only the first line of the throwable will be formatted.
        Returns:
        a new WhitespaceThrowablePatternConverter

Copyright © 2015 Pivotal Software, Inc.. All rights reserved.