def log_to_screen(level=logging.INFO, scheme='blackbg'):
    """Log all Lantz events to the screen with a colorized terminal

    :param level: logging level for the lantz handler
    :param scheme: color scheme. Valid values are 'bw', 'bright', 'simple', 'whitebg', 'blackg'
    :return: lantz logger
    """
    handler = logging.StreamHandler()
    handler.setLevel(level)
    if not colorama:
        scheme = 'bw'
    handler.setFormatter(ColorizingFormatter(fmt=DEFAULT_FMT, scheme=scheme, style='{'))
    LOGGER.addHandler(handler)
    if level > LOGGER.getEffectiveLevel():
        LOGGER.setLevel(level)
    return LOGGER
dataset/ETHPy150Open LabPy/lantz/lantz/log.py/log_to_screen/swapped operands of `>`