- This topic has 3 replies, 3 voices, and was last updated 19 years, 3 months ago by Riyad Kalla.
-
AuthorPosts
-
Kevin_LMemberHi,
I am using MyEclipse 3.8.2, Eclipse 3.0, Tomcat 5.0, J2SDK 1.4.2_06 with MySQL MySQL 4.1
OS: WinXP
Whenever I start tomcat with MyEclipse, I see that following message on console. What is that mean? Should I do something? May be this is beyound the MyEclipse but I appreciate it if somone would tell me how I can fix this..
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.ConvertUtils).
log4j:WARN Please initialize the log4j system properly.
Riyad KallaMemberNo worries, its just a message from one of the libraries (Hibernate maybe) that you are using letting you know that Commons Logging will not use Log4J because it couldn’t find aconfig file for it, so it will just log to the console or use the JDK’s logger found in JDK 1.4+
If you do include a log4j config file in your classpath, Hibernate can optionally spit out more logging messages than any human may want, for example, if you are debugging complex code.
aazurmendiMember@support-rkalla wrote:
No worries, its just a message from one of the libraries (Hibernate maybe) that you are using letting you know that Commons Logging will not use Log4J because it couldn’t find aconfig file for it, so it will just log to the console or use the JDK’s logger found in JDK 1.4+
If you do include a log4j config file in your classpath, Hibernate can optionally spit out more logging messages than any human may want, for example, if you are debugging complex code.
I have a project with log4j propreties file in the class path, I use hibernate with show sql=true and Hibernate=DEBUG.
When I run the unit test I can’t see the output of log4J.
How can I set Junit to use the log4j setting of my project?
In advance thanks
Riyad KallaMemberYou wouldn’t set JUnit to use Log4j, you would want to tell Hibernate to use it. http://www.hibernate.org/119.html#A15
-
AuthorPosts