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.
Oleg
Regards,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]