commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rodney Waldhoff" <rw...@hotmail.com>
Subject [HttpClient] log4j auto-detection fixed
Date Sat, 15 Dec 2001 01:01:56 GMT
As a couple of people noted on this list, the HttpClient logging stuff 
wasn't quite working the way it was described in the documentation.

Recall that you can set the logging implementation used by HttpClient by 
setting the httpclient.log property.  When not this property is not set, the 
documented behavior is to look for log4j's Category class in the classpath, 
if found, use the Log4JCategoryLogger, else use the NoOpLogger.  
Unfortunately, since the System.getProperty() call was passing in NoOpLogger 
as a default, it wasn't possible to not set the httpclient.log property.

This has been fixed.  The current CVS version should now work as documented. 
  In older builds, you need to explictly set:

httpclient.log=org.apache.commons.httpclient.log.Log4JCategoryLog

to use the log4j support. As always, setting

httpclient.log=org.apache.commons.httpclient.log.SimpleLog

still works, giving simple standard-out logging.


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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


Mime
View raw message