code: def set_file_logger(self, log_level, path, logger_name='internetarchive'):
          
          _log_level = {
              'CRITICAL': 50,
              'ERROR': 40,
              'WARNING': 30,
              'INFO': 20,
              'DEBUG': 10,
              'NOTSET': 0,
          }
  
          log_format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
  
          _log = logging.getLogger(logger_name)
          _log.setLevel(logging.DEBUG)
  
          fh = logging.FileHandler(path, encoding='utf-8')
          fh.setLevel(_log_level[log_level])
  
          formatter = logging.Formatter(log_format)
          fh.setFormatter(formatter)
  
          _log.addHandler(fh)
docs: Convenience function to quickly configure any level of
          logging to a file.
  
          :type log_level: str
          :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.
  
          :type logger_name: str
          :param logger_name: (optional) The name of the logger.