'Disable logging of exceptions
Once called, any uncaught exceptions will no longer be emitted by this
logger.
This can be re-enabled with ``enable_exception_logging``.'

def disable_exception_logging(self):

    try:
        ip = get_ipython()
    except NameError:
        ip = None
    if (not self.exception_logging_enabled()):
        raise LoggingError('Exception    logging    has    not    been    enabled')
    if (ip is None):
        if (sys.excepthook != self._excepthook):
            raise LoggingError('Cannot    disable    exception    logging:    sys.excepthook    was    not    set    by    this    logger,    or    has    been    overridden')
        sys.excepthook = self._excepthook_orig
        self._excepthook_orig = None
    else:
        ip.set_custom_exc(tuple(), None)
