title: Stackdriver Logging Request/Response with Cloud ML Engine
body: <p>I am running the predict function through the API Call against a model deployed in Cloud MLEngine and I have enabled logging so that I can see the logs in Stackdriver Logging.</p>
  
  <p>When I go to the logs I see the logs generated are like this</p>
  
  <pre><code>{
   httpRequest: {
    latency:  "0.002585s"   
    remoteIp:  "X.X.X.X"   
    requestMethod:  "POST"   
    requestSize:  "259"   
    requestUrl:  "ml.googleapis.com/v1/projects/&lt;project-id&gt;/models/pricing_model/versions/v1:predict"   
    responseSize:  "56"   
    status:  200   
    userAgent:  "google-cloud-sdk gcloud/202.0.0 command/gcloud.beta.ml-engine.predict invocation-id/XXXXXXXXX environment/None environment-version/None interactive/True from-script/False python/2.7.14 (Macintosh; Intel Mac OS X 16.7.0),gzip(gfe)"   
   }
   insertId:  "qd41"  
   jsonPayload: {
    @type:  "type.googleapis.com/google.cloud.ml.v1.PredictionLogEntry"   
    modelLatency:  "0.000507s"   
    numInstances:  "1"   
    requestType:  "LOADED"   
   }
   logName:  "projects/&lt;project-id&gt;/logs/ml.googleapis.com"  
   receiveTimestamp:  "2018-05-23T20:51:42.980326893Z"  
   resource: {
    labels: {…}   
    type:  "cloudml_model_version"   
   }
   severity:  "INFO"  
   timestamp:  "2018-05-23T20:51:42Z"  
  }
  </code></pre>
  
  <p>This does not include the request and response. Is there a way I can add that parameter in so that whenever I run predict against the model in ML Engine, I can also see the request and response?</p>
  
  <p>I would like to see two more fields in the logs like this</p>
  
  <pre><code>request:[1068,34,45,89,3245,543543]
  prediction(or Response):[34354.43]
  </code></pre>