Oleg Kalnichevski wrote: > > > > 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. > > Thanks for your response. Are there any plan to add such > > logging to HttpClient 4.0? I must admit that if this is not > > the case, I'll have to consider revert back to 3.1 :-( > HttpClient 4.0 _supports_ logging using Commons Logging > _exactly_ the same way as HttpClient 3.x. You are confusing > HttpCore and HttpClient, which are not the same thing. Well, I am confused. I thought you told above that logging didn't apply to Http Client 4.0. I tried the following (from http://hc.apache.org/httpclient-3.x/logging.html#Commons_Logging_Examples): System.setProperty("org.apache.commons.logging.Log","org.apache.commons.logging.impl.SimpleLog"); System.setProperty("org.apache.commons.logging.simplelog.showdatetime","true"); System.setProperty("org.apache.commons.logging.simplelog.log.httpclient.wire.header","debug"); System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient","debug"); but that does not change anything. There ir not any log. I tried to changed the following property: org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient to the following one: org.apache.commons.logging.simplelog.log.org.apache.http to reflect the change of packages from 3.1 to 4.0, but with no result neither. Regards, -- Florent Georges http://www.fgeorges.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
