vy commented on issue #3146:
URL: 
https://github.com/apache/logging-log4j2/issues/3146#issuecomment-2449789956

   > In the current implementation, however, there is an _off-by-one_ error: if 
I use `%xThrowable{2}`, I obtain a single stack trace line, instead of the 
expected two:
   > 
   > ```
   > INFO An unexpected problem occurred, while doing foo.
   > java.lang.RuntimeException
   >    at eu.copernik.sandbox.MainTest.logAtInfo(MainTest.java:13) 
[test-classes/:?]
   > ```
   > 
   > @vy, do you agree that the stack trace line count should not include the 
line with the exception message?
   
   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.


-- 
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]

Reply via email to