> -----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: [email protected]
For additional commands, e-mail: [email protected]