code: def new_log(self):
          
          log_id = self._num_logs
          self._logs[log_id] = []
          self._num_logs += 1
          return log_id
docs: Registers a new log so that calls to write will append to the log.
  
          RETURN:
          int; a unique ID to reference the log.