ppkarwasz commented on issue #3146:
URL:
https://github.com/apache/logging-log4j2/issues/3146#issuecomment-2450084504
> I am not able to follow, `xEx{2}` renders the associated `Throwable` and
produces max. `2` lines – this is identical to the behavior that was in
`<=2.23.1`. An important difference is that, in #3073, we switched prefixing
the rendered stack trace from white space to newline.
The documentation says:
> Outputs the first `depth` lines of the stack trace
Reading this I would expect to see the first `depth` stack trace elements.
This interpretation is confirmed by the documentation of `short`:
> Outputs the first line of the stack trace (analogous to `%ex{1}`)
When I use `short` I get the exception message + the first stack trace
element. So `short` currently works like `%ex{2}`.
I have never trimmed stack traces, so I don't know what users expect, but
personally I find the numbering not intuitive. Also `%ex{1}` and `%ex{2}` means
that no information about the causality chain will be printed, so the setting
is useless for debugging.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]