import logging import sys logging.basicConfig(stream=sys.stdout, level=logging.CRITICAL) logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))