def write_request_info(self, ip, app_id, version_id, nickname, user_agent,
                         host, start_time=None, end_time=None):
    if not self.persist:
      return















    namespace_manager.set_namespace(LOG_NAMESPACE)
    log = _LogRecord.get_or_create()
    log.app_id = app_id

    major_version_id = version_id.split('.')[0]
    log.version_id = major_version_id

    log.ip = ip
    log.nickname = nickname
    log.user_agent = user_agent
    log.host = host

    now_time_usecs = self.get_time_now()
    log.request_id = str(now_time_usecs)

    if start_time is not None:
      log.start_time = start_time
    else:
      log.start_time = now_time_usecs



    log.latency = 0
    log.mcycles = 0

    if end_time:
      log.end_time = end_time
      log.finished = True
    else:
      log.finished = False

    log.app_logs = []
    # AppScale
    # TODO: We need to implement the logs API.
    #log.put()
Writes a single request log with currently known information.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/logservice/logservice_stub.py/RequestLogWriter.write_request_info