On Tue, Jul 04, 2006 at 11:28:11PM +1000, Paul King wrote:
> 
> I just tried a simple test (using SimpleLog) that worked for me as follows:
> 
> Created a commons-logging.properties in the classpath containing the 
> following line:
> 
> org.apache.commons.logging.Log = org.apache.commons.logging.impl.SimpleLog
> 
> Set classpath to:
> 
> CLASSPATH=classes;lib\commons-httpclient-3.0.1.jar;lib\commons-logging-1.0.3.jar;lib\commons-codec-1.2.jar
> 
> Invoked:
> 
> >java 
> >-Dorg.apache.commons.logging.simplelog.log.httpclient.wire.header=debug 
> >GetPage http://www.google.com
> 
> output:
> [DEBUG] header - ->> "GET / HTTP/1.1[\r][\n]"
> [DEBUG] header - ->> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
> [DEBUG] header - ->> "Host: www.google.com[\r][\n]"
> [DEBUG] header - ->> "[\r][\n]"
> <...DELETED...>
> [DEBUG] header - -<< "Date: Tue, 04 Jul 2006 13:20:18 GMT[\r][\n]"
> Response status code: 200
> Response body:
> <...DELETED...>

Does it means I need to set up properties for commons loggingtogether with
log4j?!
Looks weird since on commons logging page stated log4j could be used as well
w/o additional configuration for commons-logging.

-- 
Eugene N Dzhurinsky

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

Reply via email to