In the powerful logging built-in module in Python, it is possible to disable all logs below a level by calling, for example, logging.disable(logging.INFO).
I did not find how to reset or undo this setting in the doc.
My purpose is to disable and re-enable info and debugging level logs when doing unittests, by calling logging.disable in setUp(), then calling (what?) in tearDown().
NB: I know how to do it if I have a give logger instance: keep logger.level, set the level higher, then set it back in tearDown(). I would prefer a way to mute all loggers without choosing them explicitly.