'Convenience function to quickly configure any level of logging
to a file.
:type log_level: int
:param log_level: A log level as specified in the `logging` module
:type path: string
:param path: Path to the log file.  The file will be created
if it doesn\'t already exist.'

def set_file_logger(self, log_level, path, logger_name='botocore'):

    log = logging.getLogger(logger_name)
    log.setLevel(logging.DEBUG)
    ch = logging.FileHandler(path)
    ch.setLevel(log_level)
    formatter = logging.Formatter(self.LOG_FORMAT)
    ch.setFormatter(formatter)
    log.addHandler(ch)
