[
https://issues.apache.org/jira/browse/LOG4J2-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17301271#comment-17301271
]
Volkan Yazici commented on LOG4J2-2235:
---------------------------------------
I guess this is pretty similar to the feature requested in LOG4J2-2986, which
has been fixed for {{JsonTemplateLayout}} in LOG4J2-2993. Am I mistaken?
> Add ThrowableFormatOptions "COLLAPSE"
> -------------------------------------
>
> Key: LOG4J2-2235
> URL: https://issues.apache.org/jira/browse/LOG4J2-2235
> Project: Log4j 2
> Issue Type: Improvement
> Components: Layouts
> Affects Versions: 2.10.0
> Reporter: David Brosius
> Priority: Minor
> Fix For: 2.15.0
>
>
> Given that stack traces get out of hand when you have things like spring,
> hibernate, jersey etc, it would be nice to add an option like "COLLAPSE" that
> works similar to how you can pass in ignorePackages.
>
> so that if you have a run of stacktraces that all come from the same package
> prefix, and you specified that that package name be part of a new
> collapsePackage set, then only the first stacktrace in that list would be
> shown, followed by the caller into that series of stack traces. That way you
> can tell that spring was involved, for instance, but you wouldn't have to see
> 15 stacktrace elements of spring junk that you aren't interested in.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)