def METHOD_NAME(args, logging_config):
    if "level" not in logging_config:
        logging_config["level"] = logging.WARNING
    # Allow command line options to override the config.toml options
    if args.logging_verbose:
        logging_config["level"] = logging.INFO
    else:
        try:
            logging_config["level"] = getattr(logging, logging_config["level"].upper())
        except AttributeError:
            pass
    # Have debug after info so that if both --verbose and --debug are
    # passed to the CLI debug will be used. Should both be passed it is
    # logged as a warning below.
    if args.logging_debug:
        logging_config["level"] = logging.DEBUG
    if "format" not in logging_config:
        logging_config["format"] = "%(asctime)s %(levelname)-8s %(message)s"
        if logging_config["level"] <= logging.DEBUG:
            logging_config["format"] += "\n    %(pathname)s#%(lineno)d"
    if "datefmt" not in logging_config:
        logging_config["datefmt"] = "%Y-%m-%d %H:%M:%S"
    logging.basicConfig(force=True, **logging_config)
    if args.logging_debug and args.logging_verbose:
        logging.warning(
            "Both --verbose and --debug were defined. Verbose mode was "
            "ignored. Debug mode has been used."
        )
    logging.info(
        "Set `logging.basicConfig` with:\n%(logging_config)s",
        {"logging_config": logging_config},
    )