开发者

How do I turn off warning messages in httpclient for log4j?

I have the following in my log4j fi开发者_如何学Pythonle

#set httpclient debug levels
log4j.logger.org.apache.component=ERROR,stdout 
log4j.logger.httpclient.wire=ERROR,stdout 
log4j.logger.org.apache.commons.httpclient=ERROR,stdout 

but I'm still getting warnings when I run my httpclient code... am I missing something? thanks!

WARN [pool-1-thread-69] (ResponseProcessCookies.java:126) - Cookie rejected: "[version: 0][name: webtb_state][value: method%3Dsu


ResponseProcessCookies is in the org.apache.http.client.protocol package, which you don't seem to have covered. Perhaps go for org.apache.http.client?

(You may also need to set additivity to false; it's been a while since I've configured log4j.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜