Spring 3 SimpleMappingExceptionResolver warnLogCategory log4j?

Try to extend it with something like: public class LoggingExceptionResolver extends SimpleMappingExceptionResolver { public LoggingExceptionResolver(String category) { super(); this. WarnLogger = LoggerFactory. GetLogger(category); // or whatever log implementation } } But this is basically the same thing as: with the correct log4j.logger.

Abcdefg=WARN.

I am not 100% sure but I think there is a mistake in your log4j config: try log4j.logger. Abcdefg=WARN, pqe instead of: log4j.category. Abcdefg=WARN, pqe This class has been deprecated and replaced by the Logger subclass.It will be kept around to preserve backward compatibility until mid 2003.

logging.apache.org/log4j/1.2/apidocs/org... Added (after changing the log config) It just prints in console 1/7/11 12:59:31:565 EST 0000001f abcdefg W org.springframework.web.servlet.handler. AbstractHandlerExceptionResolver logException Handler execution resulted in exception java.lang. Exception: some error test Then it is not a problem of spring or logging in general.

The problem must be the log file (or its configuration). Added Oh ha Websphere -- good luck. ;-) -- I remember in WebSphere 6.0 the was some extra file needed to get Websphre recognize the Log4j file -- could be this the cause of your problem?

It was a file called commons-logging. Properties #WebSphere specific #http://www.ibm.com/developerworks/forums/servlet/JiveServlet/download/266-227753-14177279-334591/dwWriteUp.doc priority=1 org.apache.commons.logging. LogFactory=org.apache.commons.logging.impl.

LogFactoryImpl # Use Log4j org.apache.commons.logging. Log=org.apache.commons.logging.impl. Log4JLogger # Configuration file of the log log4j.

Configuration=log4j. Xml Added by @mestachs: if you still don't log may be check the system. Out after settings the system property log4j.

Debug=true.

I tried that also, but it did not work... – john Jan 7 at 16:36 @mestachs: thanks for editing my post, but please don't add complete new content, use the comment for this. -- anyway this this case it is ok and it was usefull. – Ralph Feb 16 at 8:26.

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