def set_log_level ( logger_name : str , log_level : str , propagate : bool = False ) : log = logging . getLogger ( logger_name ) log . propagate = propagate log . setLevel ( log_level )
python set loglevel with a variable
Set the log level of the specified logger .
def set_log_level(logger_name: str, log_level: str, propagate: bool = False):
    """Set the log level of the specified logger."""
    log = logging.getLogger(logger_name)
    log.propagate = propagate
    log.setLevel(log_level)