def _enable_console(level):
    global _logger
    # define a Handler which writes messages to sys.stderr
    CONSOLE = logging.StreamHandler()
    CONSOLE.setLevel(level)
    CONSOLE.setFormatter(logging.Formatter('%(message)s'))
    _logger.addHandler(CONSOLE)
Configure logging to receive log messages at the console.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.util/src/openmdao/util/grab_distrib.py/_enable_console