Set the logging level of a device

@param deviceName the device name
@param loggingLevel the level
542098
public void setLoggingLevel(final String deviceName, final int loggingLevel) {
        System.out.println("set logging level " + deviceName + "-" + LoggingLevel.getLevelFromInt(loggingLevel));
        logger.debug("set logging level to {} on {}", LoggingLevel.getLevelFromInt(loggingLevel), deviceName);
        if (rootLoggingLevel < loggingLevel) {
            setRootLoggingLevel(loggingLevel);
        }
        // setLoggingLevel(loggingLevel);
        loggingLevels.put(deviceName, loggingLevel);
        for (final DeviceAppender appender : deviceAppenders.values()) {
            if (deviceName.equalsIgnoreCase(appender.getDeviceName())) {
                appender.setLevel(loggingLevel);
                break;
            }
        }
        for (final FileAppender appender : fileAppenders.values()) {
            if (deviceName.equalsIgnoreCase(appender.getDeviceName())) {
                appender.setLevel(loggingLevel);
                break;
            }
        }
    }
752961
public static void setDefaultLevel(java.util.logging.Level level) {
    Logger.getLogger(TOPLEVEL_PACKAGE).setLevel(level);
  }
849692
public void setLevel(@NonNull LogLevel level) {
        if (config == null) {
            throw new IllegalStateException("Cannot set logging level without a configuration");
        }

        if (logLevel.equals(level)) {
            return;
        }

        logLevel = level;
        C4Log.setBinaryFileLevel(level.getValue());
    }
674976
function setLogLevel(level){

    level = level > 0 ? level : 0;
    level = level < 4 ? level : 4;
    level = parseInt(level);
    
    logLevel = level; 

}
820100
def set_log_level(self, level):
        """"""
        if level == 'info':
            level = logging.INFO
        if level == 'debug':
            level = logging.DEBUG
        if level == 'error':
            level = logging.ERROR
        self._log.setLevel(level)
707191
protected void log(LogLevel level,Object[] message,Throwable throwable)
    {
        if(level.getValue()>=this.logLevel.getValue())
        {
            //log the message
            this.logImpl(level,message,throwable);
        }
    }
760457
public void setRootLoggingLevel(final int loggingLevel) {
        rootLoggingLevel = loggingLevel;
        if (rootLoggerBack != null) {
            rootLoggerBack.setLevel(LoggingLevel.getLevelFromInt(loggingLevel));
        }
    }
315528
public void set_logging_level(final DeviceProxy deviceProxy, final int level) throws DevFailed {
        // Get connection on administration device
        if (deviceProxy.getAdm_dev() == null) {
            import_admin_device(deviceProxy, "set_logging_level");
        }

        // Prepeare data
        final DevVarLongStringArray lsa = new DevVarLongStringArray();
        lsa.lvalue = new int[1];
        lsa.svalue = new String[1];
        lsa.lvalue[0] = level;
        lsa.svalue[0] = get_name(deviceProxy);
        final DeviceData argin = new DeviceData();
        argin.insert(lsa);
        // And send command
        deviceProxy.getAdm_dev().command_inout("SetLoggingLevel", argin);
    }
1000913
public function setLogLevel($logLevel) {
 		if (is_int($logLevel) && $logLevel <= count($this->loggerTypes)) {
			$this->logLevel = $logLevel;
			$this->debug("Log level was set to: {$this->loggerTypes[$logLevel]->getName()}");
		} else {
			$this->warn("Invalid Log Level was requested");
		}
	}
37299
private static void setJULLevel( java.util.logging.Logger logger, String log4jLevelConfig )
    {
        java.util.logging.Level level = log4jLevelToJULLevel( log4jLevelConfig );
        logger.setLevel( level );
    }
57486
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)
507873
def set_level(name, level):
    
    if name is None or name == "" or name == "bench":
        logging.getLogger("bench").setLevel(level)
    loggername = "bench." + name
    logging.getLogger(loggername).setLevel(level)
799710
public void setVerboseDebug(final int level) {
        debugLevel = level;
        for (final String logName : logs.keySet()) {
            logs.get(logName).setVerboseDebug(level);
        }
    }
1250228
def set_level(level):
        
        Logger.level = level
        for logger in Logger.loggers.values():
            logger.setLevel(level)
145068
public static void logLevel(String level) {
        if (!Arrays.asList("TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF").contains(level)) {
            throw new IllegalArgumentException("log level \"" + level + "\" is not legal it must be one of \"TRACE\", \"DEBUG\", \"INFO\", \"WARN\", \"ERROR\", \"OFF\"");
        }
        System.setProperty(MOCKSERVER_LOG_LEVEL, level);
        MockServerLogger.initialiseLogLevels();
    }
717454
public function setLevel(\n2n\log4php\LoggerLevel $level = null) {
		if (isset($level)) {
			parent::setLevel($level);
		} else {
			throw new \n2n\log4php\LoggerException("log4php: Cannot set LoggerRoot level to null.", E_USER_WARNING);
		}
	}
694764
public void log(Level level, String loggerFqcn, Object message, Throwable t) {
        doLog(level, loggerFqcn, message, null, t);
    }