Class ExtendedThrowablePatternConverter
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.apache.logging.log4j.core.pattern.ExtendedThrowablePatternConverter
- All Implemented Interfaces:
PatternConverter
@NullMarked
@Plugin(name="ExtendedThrowablePatternConverter",
category="Converter")
public final class ExtendedThrowablePatternConverter
extends ThrowablePatternConverter
ThrowablePatternConverter variant where the rendered StackTraceElements are enriched with the enclosing JAR file and its version information, if available.-
Field Summary
Fields inherited from class ThrowablePatternConverter
formatters, optionsFields inherited from class AbstractPatternConverter
LOGGERFields inherited from interface PatternConverter
CATEGORY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateExtendedThrowablePatternConverter(@Nullable Configuration config, @Nullable String[] options) -
Method Summary
Modifier and TypeMethodDescriptionprivate static ThrowableExtendedStackTraceRenderercreateRenderer(ThrowableFormatOptions options) newInstance(@Nullable Configuration config, @Nullable String[] options) Creates an instance of the class.Methods inherited from class ThrowablePatternConverter
format, getOptions, getSuffix, handlesThrowableMethods inherited from class LogEventPatternConverter
emptyVariableOutput, format, isVariableMethods inherited from class AbstractPatternConverter
getName, getStyleClass
-
Constructor Details
-
ExtendedThrowablePatternConverter
private ExtendedThrowablePatternConverter(@Nullable Configuration config, @Nullable String[] options)
-
-
Method Details
-
createRenderer
-
newInstance
public static ExtendedThrowablePatternConverter newInstance(@Nullable Configuration config, @Nullable String[] options) Creates an instance of the class.- Parameters:
config- a configurationoptions- the pattern options- Returns:
- a new instance
-