onResponse

Set response handler for logging.