Log4j, Springframework
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Log4j, Springframework

  1. #1
    Join Date
    Aug 2008
    Posts
    6

    Log4j, Springframework

    Hello,

    We are using the spring framework and log4j.

    When our project is compiled we get

    log4j:WARN No appenders could be found for logger (org.springframework.beans.factory.xml.XmlBeanDefinitionReader).
    log4j:WARN Please initialize the log4j system properly.

    I'm not sure what this means. I initialize log4j in each class with

    static Logger logger = Logger.getLogger(ClassName.class);

    Tried to google the error message but I'm still clueless
    Thanks in advance :-(

  2. #2
    Join Date
    May 2006
    Location
    UK
    Posts
    4,474

    Re: Log4j, Springframework

    Configuring Log4J is explained in the log4j manual.
    For a basic configuration add the following line to your main method
    Code:
    BasicConfigurator.configure();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center