code: def log_level(conf):
      
      if conf.debug is True:
          return logging.DEBUG
      elif conf.verbose is True:
          return logging.DEBUG
      elif conf.quiet is True:
          return logging.WARNING
      else:
          return logging.INFO
docs: Get debug settings from arguments.
  
      --debug: turn on additional debug code/inspection (implies
               logging.DEBUG)
  
      --verbose: turn up logging output (logging.DEBUG)
  
      --quiet: turn down logging output (logging.WARNING)
  
      Default is logging.INFO