I am getting across a weired warning message in logs. The message is in subject line. I have investigated about this and found out that it comes from getResponseBody() method located in HTTPMethodBase class in commons-httpclient.jar.
The message is written as Log.warn ("Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recomended");
Now I want to set a log level of commons-httpclient.jar so that I could get rid of this message from log file.
I am using logging.properties file in which handlers are catalina.org.apache.juli.FileHandler and java.util.logging.ConsoleHandler . I tried setting levels with different values but still the warning message is geting printed.
Please suggest any alternate solution . Or am I missing anything in above procedure?
looking forward for reply.
thanks in advance
You might want to swap to the more powerful log4j.xml style of configuring your Log4j, then look at how you can filter out categories (you can specify to only see ERROR messages from that particular package for example).
You might also want to investigate why that warning is being thrown and/or look to see if it's a bug that's been fixed in a later version of HTTPClient