I am looking for a Log4J Layout / Formatter that helps me trim stack traces in exceptions a little better than the defaults. The fact that the execution of the stack is somewhere below main () is completely obvious and not necessary for me to know, and that the exception occurred deep inside some other library, in fact I can do nothing too much.
I would like to create a layout that cuts off the stack trace, for example, the last 5 method call methods in my own code, identified by a jar file, package, or something else.
Is there anything in this direction, or do I need to write some kind of magic?
source
share