'Writes a line to the logs buffer.'

def _write(self, line):

    if (self._request != logsutil.RequestID()):
        self._reset()
    self.stream().write(line)
    self._lines += 1
    self._bytes += len(line)
    self._autoflush()
