You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Danny Gallagher <da...@generatedsystems.com> on 2009/06/03 21:53:36 UTC
Wire Logging
Using 3.1
I cannot seem to get wire logging to produce anything in my log.
Here is the code:
FileHandler defaultHandler = new FileHandler(path + "BBD%u.log", 50000,
1, true);
Logger.getLogger("").addHandler(defaultHandler);
Logger.getLogger("org.apache.commons.httpclient").setLevel(Level.ALL);
Logger.getLogger("org.apache.http.wire.level").setLevel(Level.ALL);
Logger.getLogger("org.apache.http.level").setLevel(Level.ALL);
This produces log entries for the classes under
org.apache.commons.httpclient, but nothing
for data going over the wire.
I can't seem to figure out what I am missing / not doing correctly.
Any help is appreciated.
Thanks
Re: Wire Logging
Posted by Bindul Bhowmik <bi...@gmail.com>.
Danny,
On Wed, Jun 3, 2009 at 13:53, Danny Gallagher
<da...@generatedsystems.com> wrote:
> Using 3.1
>
>
>
> I cannot seem to get wire logging to produce anything in my log.
>
>
>
> Here is the code:
>
>
>
> FileHandler defaultHandler = new FileHandler(path + "BBD%u.log", 50000,
> 1, true);
>
> Logger.getLogger("").addHandler(defaultHandler);
>
> Logger.getLogger("org.apache.commons.httpclient").setLevel(Level.ALL);
>
>
>
> Logger.getLogger("org.apache.http.wire.level").setLevel(Level.ALL);
>
> Logger.getLogger("org.apache.http.level").setLevel(Level.ALL);
>
You might want to change the two lines above to:
Logger.getLogger("org.apache.http.wire").setLevel(Level.ALL);
Logger.getLogger("org.apache.http").setLevel(Level.ALL);
Basically remove the '.level' from the logger names.
>
>
>
>
> This produces log entries for the classes under
> org.apache.commons.httpclient, but nothing
>
> for data going over the wire.
>
>
>
> I can't seem to figure out what I am missing / not doing correctly.
>
>
>
> Any help is appreciated.
>
>
>
> Thanks
>
HTH
Bindul
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org