|
-
December 20th, 2008, 07:39 AM
#1
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 :-(
-
December 20th, 2008, 10:41 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|