Package net.neoforged.fml.logging
Class TransformingThrowablePatternConverter
java.lang.Object
org.apache.logging.log4j.core.pattern.AbstractPatternConverter
org.apache.logging.log4j.core.pattern.LogEventPatternConverter
org.apache.logging.log4j.core.pattern.ThrowablePatternConverter
net.neoforged.fml.logging.TransformingThrowablePatternConverter
- All Implemented Interfaces:
org.apache.logging.log4j.core.pattern.PatternConverter
@Plugin(name="TransformingThrowablePatternConverter",
category="Converter")
public class TransformingThrowablePatternConverter
extends org.apache.logging.log4j.core.pattern.ThrowablePatternConverter
Started as a copy of
ExtendedThrowablePatternConverter because
there is no mechanism to hook additional data into that class, which is very rubbish.-
Field Summary
FieldsFields inherited from class org.apache.logging.log4j.core.pattern.ThrowablePatternConverter
formatters, optionsFields inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
LOGGERFields inherited from interface org.apache.logging.log4j.core.pattern.PatternConverter
CATEGORY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransformingThrowablePatternConverter(org.apache.logging.log4j.core.config.Configuration config, String[] options) -
Method Summary
Modifier and TypeMethodDescriptionvoidformat(org.apache.logging.log4j.core.LogEvent event, StringBuilder toAppendTo) static StringgenerateEnhancedStackTrace(Throwable throwable) newInstance(org.apache.logging.log4j.core.config.Configuration config, String[] options) Gets an instance of the class.Methods inherited from class org.apache.logging.log4j.core.pattern.ThrowablePatternConverter
getOptions, getSuffix, handlesThrowableMethods inherited from class org.apache.logging.log4j.core.pattern.LogEventPatternConverter
emptyVariableOutput, format, isVariableMethods inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
getName, getStyleClass
-
Field Details
-
SUFFIXFLAG
- See Also:
-
-
Constructor Details
-
TransformingThrowablePatternConverter
protected TransformingThrowablePatternConverter(org.apache.logging.log4j.core.config.Configuration config, String[] options) - Parameters:
config- config.options- options, may be null.name- Name of converter.style- CSS style for output.
-
-
Method Details
-
format
- Overrides:
formatin classorg.apache.logging.log4j.core.pattern.ThrowablePatternConverter
-
newInstance
public static TransformingThrowablePatternConverter newInstance(org.apache.logging.log4j.core.config.Configuration config, String[] options) Gets an instance of the class.- Parameters:
config- The current Configuration.options- pattern options, may be null. If first element is "short", only the first line of the throwable will be formatted.- Returns:
- instance of class.
-
generateEnhancedStackTrace
-