vy commented on issue #3146:
URL:
https://github.com/apache/logging-log4j2/issues/3146#issuecomment-2450758524
> > Would you want me to explicitly state this difference in the docs?
>
> Maybe you could say "Truncates the output if it exceeds `depth` lines".
Documentation states this as follows: _"Outputs the first `depth` lines of
the stack trace (`%ex{0}` is analogous to `%ex{none}`)"_ I presume this is
similar to what you describe.
> Regarding `%ex{short}`, I believe that it should be equivalent to
`%n%ex{short.className}: %ex{short.message}` or `%n<output of
Throwable.toString()>`. Currently it prints the first **2** (not 1) lines of
the stacktrace. If the `Throwable.getMessage()` contains new lines, this could
not even contain the full message.
This is a bug in the documentation. `%ex{short}` is analogous to `%ex{2}`,
which is the pre-`2.25.-0` behavior too. I will fix this in #3123.
--
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]