Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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
log4j.logger.httpclient.wire=DEBUG
  • No labels