code: 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;
              }
          }
      }
docs: Set the logging level of a device
  
  @param deviceName the device name
  @param loggingLevel the level