I am using apache commons library and log4j. I have an xml configuration file and log4j.properties files. I want to specify the path of the log4j properties in my xml configuration file. To download my settings, follow these steps:
//Loading my xml file this.config = new XMLConfiguration(this.xmlFileName);
The following warnings are raised at this point:
log4j:WARN No appenders could be found for logger (org.apache.commons.configuration.ConfigurationUtils). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html
However, I have not yet called any log4j object. Once I read the xml file, I can successfully work with my log4j instance. Is there any way to remove these warnings?
source share