hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KARR, DAVID (ATTSI)" <dk0...@att.com>
Subject RE: What's the easiest way to programatically turn off httpclient logging?
Date Wed, 03 Aug 2011 22:05:55 GMT
> -----Original Message-----
> From: KARR, DAVID (ATTSI)
> Sent: Wednesday, August 03, 2011 2:46 PM
> To: HttpClient User Discussion
> Subject: What's the easiest way to programatically turn off httpclient
> logging?
> 
> I've been going through the logging section, and I can't figure out how
> to just turn off logging entirely, programmatically.  Isn't there an
> easy way to do this?  I tried doing something like this:
> 
>   System.setProperty("log4j.logger.org.apache.http.wire", "ERROR");
> 
> Right at the start of my test, but it didn't appear to have any impact.
> I'm still seeing lines like this in my output:
> 
>   ... DEBUG [org.apache.http.wire] [wire] [Thread:main] - [>> ...

I think I figured it out.  I just did this:

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

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message