code: public void logRequest(HttpRequestBase request, HttpEntitySnapshot requestEntity,
                             HttpResponse response, HttpEntitySnapshot responseEntity, long durationMillis) throws IOException {
  
          logger.info("{} {}, Response Code:{}, Request completed in {} ms", request.getMethod(), request.getURI(),
                  response.getStatusCode(), durationMillis);
          if (response.getStatusCode() != 200) {
              // log the request and response on error
              logger.warn("{}", RequestAndResponseData.of(request, requestEntity, response, responseEntity,
                      REQUEST_RESPONSE));
          }
          else {
              // log the summary request and response on success
              logger.debug("{}", RequestAndResponseData.of(request, requestEntity, response, responseEntity,
                      REQUEST_RESPONSE_SUMMARY));
          }
      }
docs: Log to the SLF4J logger (level based upon response status code). Override this function to add logging
  or capture performance metrics.
  
  @param request request
  @param requestEntity request body
  @param response response
  @param responseEntity response body
  @param durationMillis response time in ms
  @throws IOException