'Restore output to its original state.'

def stop_logging(self):

    while self._context_stack:
        self._pop_context()
    for stream_manager in self._streams:
        stream_manager.stop_logging()
    self._started = False
