类 WhitespaceThrowablePatternConverter

  • 所有已实现的接口:
    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.
    从以下版本开始:
    1.3.0
    • 字段概要

      • 从类继承的字段 org.apache.logging.log4j.core.pattern.ThrowablePatternConverter

        formatters, options
      • 从类继承的字段 org.apache.logging.log4j.core.pattern.AbstractPatternConverter

        LOGGER
      • 从接口继承的字段 org.apache.logging.log4j.core.pattern.PatternConverter

        CATEGORY
    • 方法详细资料

      • format

        public void format​(org.apache.logging.log4j.core.LogEvent event,
                           StringBuilder buffer)
        覆盖:
        format 在类中 org.apache.logging.log4j.core.pattern.ThrowablePatternConverter
      • newInstance

        public static WhitespaceThrowablePatternConverter newInstance​(org.apache.logging.log4j.core.config.Configuration configuration,
                                                                      String[] options)
        Creates a new instance of the class. Required by Log4J2.
        参数:
        configuration - current configuration
        options - pattern options, may be null. If first element is "short", only the first line of the throwable will be formatted.
        返回:
        a new WhitespaceThrowablePatternConverter