<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def new_log(self):
 """Registers a new log so that calls to write will append to the log. RETURN: int; a unique ID to reference the log. """

        log_id = self._num_logs
        self._logs[log_id] = []
        self._num_logs += 1
        return log_id