类 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
- 所有已实现的接口:
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
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 void
format(org.apache.logging.log4j.core.LogEvent event, StringBuilder buffer)
static WhitespaceThrowablePatternConverter
newInstance(org.apache.logging.log4j.core.config.Configuration configuration, String[] options)
Creates a new instance of the class.
方法详细资料
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 configurationoptions
- pattern options, may be null. If first element is "short", only the first line of the throwable will be formatted.- 返回:
- a new
WhitespaceThrowablePatternConverter