def fill_in_log(self, request, log, app_logs):
    log.set_app_id(self.app_id)
    log.set_version_id(self.version_id)
    log.set_ip(self.ip)
    log.set_nickname(self.nickname)
    log.set_request_id(str(self.key()))
    log.set_start_time(self.start_time)
    log.set_end_time(self.end_time)
    log.set_latency(self.latency)
    log.set_mcycles(self.mcycles)
    log.set_method(self.method)
    log.set_resource(self.resource)
    log.set_status(self.status)
    log.set_response_size(self.response_size)
    log.set_http_version(self.http_version)
    if self.host is not None:
      log.set_host(self.host)
    if self.user_agent is not None:
      log.set_user_agent(self.user_agent)
    log.set_finished(self.finished)
    log.set_url_map_entry('')


    time_seconds = (self.end_time or self.start_time) / 10**6
    date_string = time.strftime('%d/%b/%Y:%H:%M:%S %z',
                                time.localtime(time_seconds))
    log.set_combined('%s - %s [%s] \"%s %s %s\" %d %d - \"%s\"' %
                     (self.ip, self.nickname, date_string, self.method,
                      self.resource, self.http_version, self.status or 0,
                      self.response_size or 0, self.user_agent))

    if request.include_app_logs():
      for app_log in app_logs:
        log_line = log.add_line()
        log_line.set_time(app_log.time)
        log_line.set_level(app_log.level)
        log_line.set_log_message(app_log.message)
Fills in fields in a given RequestLog from a LogReadRequest's fields.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/logservice/logservice_stub.py/_LogRecord.fill_in_log