def METHOD_NAME(self):
    # Force flask to create application logger before logging
    # configuration; else, flask will overwrite our settings
    self.logger  # noqa
    log_level = self.config.get("LOG_LEVEL")
    if log_level:
        self.logger.setLevel(log_level)
    logging_file = self.config.get("LOGGING_CONFIG_FILE")
    if logging_file:
        logging_file = (Path(self.instance_path) / logging_file).resolve()
    else:
        logging_file = Path(
            resource_filename("abilian.core", "default_logging.yml")
        )
    if logging_file.suffix == ".ini":
        # old standard 'ini' file config
        logging.config.fileConfig(str(logging_file), disable_existing_loggers=False)
    elif logging_file.suffix == ".yml":
        # yaml config file
        logging_cfg = yaml.safe_load(logging_file.open())
        logging_cfg.setdefault("version", 1)
        logging_cfg.setdefault("disable_existing_loggers", False)
        logging.config.dictConfig(logging_cfg)