-
Log4j Warning (1 messages)
- Posted by: Ramesh Reddy Etta
- Posted on: September 20 2007 08:45 EDT
hi, I have configured Log4j for my application and when i start the tomcat server i am able to see some log4j warnings like this: log4j: WARN: No appenders could be found for logger (org.apache.commons.beanutils.Convertutils ). log4j: WARN: Please initialize the log4j system properly. Could anyone have idea about this problem. I dont want this messages to be comming. Is there any changes to be made. please help me.Threaded Messages (1)
- Re: Log4j Warning by Mike Spiridonov on September 20 2007 11:29 EDT
-
Re: Log4j Warning[ Go to top ]
- Posted by: Mike Spiridonov
- Posted on: September 20 2007 11:29 EDT
- in response to Ramesh Reddy Etta
Bear in mind log4j only does static initialisation if you supply log4j.configuration system property or have log4j.properties in your classpath. If you are using servlet or IoC-container based initialisation you might well have your server/container trying to log something while the log4j initialisation is still to be done. That is when those messages are popping up. As a fix you can put "global" log4j.properties file with logging switched off into your classpath and it will be picked up by main ClassLoader but have specific config and initialisation for your application. And do not forget to take a look at the manual.