How can I configure the default trace trace behavior of java so that only the head is visible? I am currently using 2>&1 | heador | less -i, and I find it suboptimal.
If there is an uncaught exception, Java prints to me 115 lines, and then the text ... 102 more. From 99% to 97% of this trace does not matter to me. This leaves the first 3 lines interesting.
How to configure Java to print 2 lines, and then, in my example ... 215 more,?
source
share