James
James

Reputation: 15475

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

I have the following in my log4j file

#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

Upvotes: 2

Views: 2069

Answers (1)

Jon Skeet
Jon Skeet

Reputation: 1499770

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.)

Upvotes: 3

Related Questions