How can I configure the default java stack trace printing behaviour so only the head is visible? Currently I use 2>&1 | head
or | less -i
and I find it suboptimal.
When having an uncaught exception, Java prints me 115 lines and then the text ... 102 more
. 99% to 97% of this trace is irrelevant to me. This leaves the first 3 lines interesting.
How can I configure Java to print me 2 lines and then, in my example case, ... 215 more
?