code: def wrap_handler(self, handler, context_switcher):
          
          context_switcher.add_context_in(lambda: LOGGER.addHandler(self.handler))
          context_switcher.add_context_out(lambda: LOGGER.removeHandler(self.handler))
docs: Enable/Disable handler.