Blog Archive for February 7, 2012

HttpClient v3 Logging

February 7, 2012

To enable logging for Apache, HttpClient 3 set the following system properties in your code, and include the commons-logging jar file.

System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");
System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true");
System.setProperty("org.apache.commons.logging.simplelog ...