logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: log4j xml configuration
Date Fri, 03 Oct 2003 17:40:13 GMT
At 12:11 PM 10/3/2003 -0500, you wrote:
>At 03:43 PM 10/3/2003 +0000, you wrote:
>>I am having problems getting log4j to configure from an XML file.
>>When I use the xml file shown below, i get the following warning in
>>java (1.4.1_02). Note: When I use a non-XML properties file it works
>>just fine.
>>log4j:WARN No appenders could be found for logger
>>log4j:WARN Please initialize the log4j system properly.
>>Any ideas? Thanks in advance.
>Try removing all appenders except for the console appender from the <root> 
>logger and see it works.  Reducing the extraneous variables will help 
>pinpoint the problem more efficiently.  Also, I assume you had put 
>log4j.properties in the classpath and let log4j load it automatically.  I 
>imagine you did the same for log4j.xml.  I think Log4j loads properties 
>files preferentially to XML files (I could be wrong here).

Actually, it's log4j.xml first and log4j.properties second. Of course, this 
does not help in hunting down the problem.

Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp

      import org.apache.Facetime;
      ApacheCon US 2003, 18-21 November http://apachecon.com/

To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

View raw message