Is it possible to reduce the stacktrace from an exception down to ignore Springs stack?
When a method of mine throws a IllegalArgumentException (as intended) and I l
There's a Log4J add-on that can filter the stack trace. With the custom layout on the classpath, you can then configure the elements to filter out in your config:
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<layout class="it.openutils.log4j.FilteredPatternLayout">
<param name="ConversionPattern" value="%-5p %c %F(%M:%L) %d{dd.MM.yyyy HH:mm:ss} %m%n" />
<param name="Filter" value="org.apache.catalina" />
<param name="Filter" value="org.apache.tomcat" />
<param name="Filter" value="org.apache.coyote" />
<param name="Filter" value="org.myapp.web.filters" />
<param name="Filter" value="com.opensymphony.module.sitemesh.filter" />
<param name="Filter" value="sun.reflect" />
<param name="Filter" value="javax.servlet.http" />
</layout>
</appender>