def set_default_log_levels(loggers_and_log_levels):
    """Set default log levels for some loggers.

    :param loggers_and_log_levels: List of tuple (logger name, level).
    """
    for logger, level in loggers_and_log_levels:
        if isinstance(level, str):
            level = level.upper()
        logging.getLogger(logger).setLevel(level)
def set_default_log_levels ( loggers_and_log_levels ) : for logger , level in loggers_and_log_levels : if isinstance ( level , str ) : level = level . upper ( ) logging . getLogger ( logger ) . setLevel ( level )
Set default log levels for some loggers.

    :param loggers_and_log_levels: List of tuple (logger name, level).