from log_config.properties_utils import Properties import logging def set_log_config(): log_config = Properties('log.properties').get_properties() logging.basicConfig(**log_config) logging.debug("debug ******") def set_log_config_diy(): pro = Properties('log.properties').get_properties() log_config = { "filename": pro["filename"], "level": pro["level"] } logging.basicConfig(**log_config) logging.debug("debug ******")