开发者

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

开发者 https://www.devze.com 2023-01-07 12:28 出处:网络
I have the following in my log4j fi开发者_如何学Pythonle #set httpclient debug levels log4j.logger.org.apache.component=ERROR,stdout

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

精彩评论

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

关注公众号