Stop logging of annoying HttpComponents INFO messages
John.Kelly 10000004H6 Visits (4782)
While doing some Java development recently I was using Apache HttpComponents™ to perfrom an HTTP GET to a remote webserver.
On some occasions I got the following irritating INFORMATIONAL messages from the default logger
After a little investigation I found I could simply add the following code snippet into my Java class to make the messages "disappear"
// This stops irritating INFO messages coming out
The first property tell the http client which logger to use and the second sets the logging level for offending component to only report on WARNINGS and above