import logging


def add_file_log_handler(formatter, log_file, level=logging.INFO):
    """Creates and returns a handler that streams to the file at the logging level specified"""
    fh = logging.FileHandler(log_file, mode='w')
    fh.setFormatter(formatter)
    fh.setLevel(level)
    return fh