code: def log_part(self):
          
          self.cap_stdout.seek(self._pos)
          text = self.cap_stdout.read()
          self._pos = self.cap_stdout.tell()
          self.parts.append(text)
          self.text = text
docs: Log what has been captured so far