hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Http Client 4.0: logging?
Date Thu, 19 Feb 2009 20:40:01 GMT
Florent Georges wrote:
>   Hi,
>   I am trying to activate logs in Http Client 4.0.  Actually the
> ability to have logs was one of the reasons I looked at Http
> Client.  But it seems this is not available anymore in Http
> Client 4.0. 
> From httpcore-tutorial.pdf, in 2.8.4. Connection
> event listener:
>     Protocol handlers like the rest of HttpCore classes do not
>     do logging in order to not impose a choice of a logging
>     framework onto the users. However one can add logging of the
>     most important connection events by injecting a
>     EventListener implementation into the protocol handler.
>   But from the Javadoc, it seems the EventListener interface
> does not exist in either Http Core or Http Client.  I feel I
> missed something obvious, but I can't see what.  Do you have any
> advice on logging with Http Client 4.0?

That applies to NIO reactors only, which are not used by HttpClient 4.0.

Just set 'org.apache.http' logging category to DEBUG priority amd you'll 
get tons of log entries.


>   Regards,

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

View raw message