import logging


def add_console_handler(formatter, level=logging.INFO):
    """Creates and returns a handler that streams to the console at the logging level specified"""
    ch = logging.StreamHandler()
    ch.setFormatter(formatter)
    ch.setLevel(level)
    return ch