Exemple #1
0
 public void logResponse(Logger logger, HttpResponse response, String prefix) {
   if (logger.isDebugEnabled()) {
     logger.debug("%s %s", prefix, response.getStatusLine().toString());
     logMessage(logger, response, prefix);
   }
 }
Exemple #2
0
 public void logRequest(Logger logger, HttpRequest request, String prefix) {
   if (logger.isDebugEnabled()) {
     logger.debug("%s %s", prefix, request.getRequestLine().toString());
     logMessage(logger, request, prefix);
   }
 }