code: def _addToBuffers(self, logname, data):
          
          n = len(data)
  
          self.buflen += n
          self.buffered.append((logname, data))
          if self.buflen > self.BUFFER_SIZE:
              self._sendBuffers()
          elif not self.sendBuffersTimer:
              self.sendBuffersTimer = self._reactor.callLater(
                  self.BUFFER_TIMEOUT, self._bufferTimeout)
docs: Add data to the buffer for logname
          Start a timer to send the buffers if BUFFER_TIMEOUT elapses.
          If adding data causes the buffer size to grow beyond BUFFER_SIZE, then
          the buffers will be sent.