How to log exception stacktrace for Spring's SimpleMappingExceptionResolver?

Set the properties for warnLogCategory See the class Javadoc.

Set the properties for warnLogCategory. See the class Javadoc.

– Corey Nov 23 '10 at 18:25 any value you want – matt be Nov 23 '10 at 21:16 Interesting... it works although it's displaying it as a "warning" and not an "error" in the logs. It works though, thanks. – Corey Nov 24 '10 at 0:40 Well that is what the docs say - it will log exceptions at the WARN level.

If you want to change how it's logged I'd look into subclassing SimpleMappingExceptionResolver and override the ` logException(Exception ex, HttpServletRequest request)` method - should be simple – matt be Nov 24 '10 at 15:22.

If I have it just prints out the exception in the console what do I need in the log4j. Properties to be able to log it to an actual . Log file?

I tried the two below, but it is not working log4j.category. Abcd=WARN, myappender log4j.category. Abcd=DEBUG, myappender thanks.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions