Beispiel #1
0
  static {
    levelStringMap.put("verbose", Debug.VERBOSE);
    levelStringMap.put("timing", Debug.TIMING);
    levelStringMap.put("info", Debug.INFO);
    levelStringMap.put("important", Debug.IMPORTANT);
    levelStringMap.put("warning", Debug.WARNING);
    levelStringMap.put("error", Debug.ERROR);
    levelStringMap.put("fatal", Debug.FATAL);
    levelStringMap.put("always", Debug.ALWAYS);

    // initialize levelOnCache
    for (int i = 0; i < levelOnCache.length; i++) {
      levelOnCache[i] =
          (i == Debug.ALWAYS
              || UtilProperties.propertyValueEqualsIgnoreCase(
                  "debug.properties", levelProps[i], "true"));
    }
  }