Debugging vcap_java_client and Cloud Foundry APIs

Log the status of all HTTP requests

For example:

// TODO use RestLogger to format this
client.registerRestLogListener(new RestLogCallback() {
	@Override
	public void onNewLogEntry(RestLogEntry logEntry) {
		CloudFoundryServiceVcap.this.logger.error( logEntry.getUri() + " " + logEntry.getMethod() + " " + logEntry.getHttpStatus() + " " + logEntry.getStatus() + " " + logEntry.getMessage() );
	}
});

Log all HTTP traffic for Cloud Foundry

log4j config
Category is org.apache.http.wire  Set it to DEBUG