'Provides an iterator that yields log records one at a time.'

def __iter__(self):

    while True:
        for log_item in self._logs:
            (yield RequestLog(log_item))
        if ((not self._read_called) or self._request.has_offset()):
            if (self._end_time and (time.time() >= self._end_time)):
                offset = None
                if self._request.has_offset():
                    offset = self._request.offset().Encode()
                raise TimeoutError('A    timeout    occurred    while    iterating    results', offset=offset, last_end_time=self._last_end_time)
            self._read_called = True
            self._advance()
        else:
            break
