def clear_handlers(self):
        root = logging.getLogger()
        for logger in compat.listvalues(root.manager.loggerDict) + [root]:
            if hasattr(logger, 'handlers'):
                handlers = logger.handlers
                for handler in handlers:
                    if hasattr(handler, 'flush'):
                        handler.flush()
                    if hasattr(handler, 'close'):
                        handler.close()
                logger.handlers = []
        sys.stdout = sys.__stdout__
        sys.stderr = sys.__stderr__
Deletes all handlers and closes all log-files
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/tests/testutils/data.py/TrajectoryComparator.clear_handlers