facebook

log4j:WARN No appenders could be found for logger [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #219767 Reply

    Kevin_L
    Member

    Hi,

    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.

    #219786 Reply

    Riyad Kalla
    Member

    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.

    #234057 Reply

    aazurmendi
    Member

    @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

    #234058 Reply

    Riyad Kalla
    Member

    You wouldn’t set JUnit to use Log4j, you would want to tell Hibernate to use it. http://www.hibernate.org/119.html#A15

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: log4j:WARN No appenders could be found for logger [Closed]

You must be logged in to post in the forum log in