Class StackTraceStringResolver
java.lang.Object
org.apache.logging.log4j.layout.template.json.resolver.StackTraceStringResolver
- All Implemented Interfaces:
StackTraceResolver,TemplateResolver<Throwable>
Exception stack trace to JSON string resolver used by
ExceptionResolver.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final Stringprivate final Recycler<TruncatingBufferedPrintWriter> -
Constructor Summary
ConstructorsConstructorDescriptionStackTraceStringResolver(EventResolverContext context, String truncationSuffix, List<String> truncationPointMatcherStrings, List<String> truncationPointMatcherRegexes) -
Method Summary
Modifier and TypeMethodDescriptiongroupTruncationPointMatcherRegexes(List<String> regexes) voidresolve(Throwable throwable, JsonWriter jsonWriter) Resolves the givenvalueusing the providedJsonWriter.private voidprivate voidtruncate(TruncatingBufferedPrintWriter writer, int index) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.logging.log4j.layout.template.json.resolver.TemplateResolver
isFlattening, isResolvable, isResolvable, resolve
-
Field Details
-
writerRecycler
-
truncationEnabled
private final boolean truncationEnabled -
truncationSuffix
-
truncationPointMatcherStrings
-
groupedTruncationPointMatcherRegexes
-
-
Constructor Details
-
StackTraceStringResolver
-
-
Method Details
-
groupTruncationPointMatcherRegexes
-
resolve
Description copied from interface:TemplateResolverResolves the givenvalueusing the providedJsonWriter.- Specified by:
resolvein interfaceTemplateResolver<Throwable>
-
truncate
-
truncate
-