public void infoLogResponse(Response response){
  String prettyResponse=prettyResponse(response);
  if (responseLogLengthLimit > 0 && prettyResponse.length() > responseLogLengthLimit) {
    prettyResponse=prettyResponse.substring(0,responseLogLengthLimit) + "... (cut off for the log)";
  }
  logger.info("Response as string: " + prettyResponse);
}

public void infoLogResponse ( Response response ) { String prettyResponse = prettyResponse ( response ) ; if ( responseLogLengthLimit > 0 && prettyResponse . length ( ) > responseLogLengthLimit ) { prettyResponse = prettyResponse . substring ( 0 , responseLogLengthLimit ) + "... (cut off for the log)" ; } logger . info ( "Response as string: " + prettyResponse ) ; }
writes the response to log at the info level
