Beispiel #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);
   }
 }
Beispiel #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);
   }
 }