hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tarek M. Nabil" <Tarek.Na...@itworx.com>
Subject RE: Am I in the right place?
Date Thu, 13 Feb 2003 21:15:18 GMT
Thank you all for your responses.

I have to agree with Ryan that the the logging library introduces some complexity for users
who need to use the HttpClient for very simple stuff.

I also have to disagree with Ortwin that questions about logging configuration is out of scope,
since the only reason I'm interested in logging is the HttpClient.

Anyway, since, the documentation about the logging configuration wasn't quite detailed and
the commons loggin project doesn't contain
any documentation other than the javadocs, I still need to make sure that what I understood
here is correct.

Supposedly, the following statements will guarantee that the logging is only restricted to
the System.out and that it will be on the error level. Please correct me if anything is wrong.

System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");

System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true");

System.setProperty("org.apache.commons.logging.simplelog.defaultlog", "error");

Thanks again for your help.

Tarek Nabil

-----Original Message-----
From: Ortwin Gl├╝ck [mailto:ortwin.glueck@nose.ch]
Sent: Thursday, February 13, 2003 10:30 PM
To: Commons HttpClient Project
Subject: Re: Am I in the right place?

Tarek M. Nabil wrote:
> So, I guess now, my question should be, will HttpClient generate log
> files? 

Actually the log files are generated by the log implementation. This can 
be Log4J or something else. HttpClient itself does not write any files. 
Questions about Commons Logging configuration do not belong here.

 > And when? And how do I configure the logging, maybe to prevent
> it completely? Is that doable?

See package summary of Commons-Logging:


You can turn off logging completely by simply setting a System property:

But it's cleaner to make a commons-logging.properties file and set this 


To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org

View raw message