Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2235

Add ThrowableFormatOptions "COLLAPSE"

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.10.0
    • Fix Version/s: 2.13.0
    • Component/s: Layouts
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dbrosius David Brosius
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: