code: public static Level getLevel(Class cls, Level defLevel) {
      Level	result;
      String	levelStr;
  
      result = defLevel;
  
      levelStr = System.getenv(cls.getName() + LOGLEVEL_SUFFIX);
      if (levelStr != null) {
        switch (levelStr) {
  	case "ALL":
  	  return Level.ALL;
  	case "OFF":
  	  return Level.OFF;
  	case "INFO":
  	  return Level.INFO;
  	case "CONFIG":
  	  return Level.CONFIG;
  	case "FINE":
  	  return Level.FINE;
  	case "FINER":
  	  return Level.FINER;
  	case "FINEST":
  	  return Level.FINEST;
  	case "WARNING":
  	  return Level.WARNING;
  	case "SEVERE":
  	  return Level.SEVERE;
        }
      }
  
      return result;
    }
docs: Returns the log level for the specified class. E.g., for the class
  "hello.world.App" the environment variable "hello.world.App.LOGLEVEL"
  is inspected and "{OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST}"
  returned. Default is WARNING.
  
  @param cls		the class to return the debug level for
  @param defLevel	the default level to use
  @return		the logging level