Hi Steve,

I think you should add this line :

PropertyConfigurator.configure(System.getProperties());

In your code. 

Adding this code means you re-initialize the LOG4j.

But for any details you should look at the LOG4j site.

Hope this help.

Regards,

Rahmat Bagas Santoso

-----Original Message-----
From: Steve Johnson [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 21, 2004 9:57 PM
To: '[EMAIL PROTECTED]'
Subject: How to configure log4j.

Hi All,
 
Please help me initialize the log4j system properly.
 
I have attempted to create a properties file and use System properties.
Do I need to put the properties file in the jar in the same directory
with the classes?
Is there a default properties file for httpclient?
 
log4j:WARN No appenders could be found for logger
(org.apache.commons.httpclient.methods.GetMethod).
log4j:WARN Please initialize the log4j system properly.
 
Help Cecil Help,
Steve
 
Steve Johnson
Software Engineer
Mercury Interactive
720 564 - 6532
USA, Canada and the Americas 
720 564-6620
Hours: M-F 08:00-17:00 MST (Mountain Standard Time) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 <http://www.mercuryinteractive.com> http://www.mercuryinteractive.com
Looking for Answers to your SiteScope or SiteSeer questions?
<http://support.mercuryinteractive.com>
http://support.mercuryinteractive.com
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to