code: public static DebugLog.Level convertDebugLevel(String name) {
          if (null == name) {
              return DebugLog.Level.NONE;
          }
          // WAS panels have expanded names for some of these so we're doing
          // a series of checks instead of the enum.valueOf() option
  
          // default to the WARNING level
          DebugLog.Level level = DebugLog.Level.WARN;
          String test = name.trim().toLowerCase();
          if ("none".equals(test)) {
              level = DebugLog.Level.NONE;
          } else if ("error".equals(test)) {
              level = DebugLog.Level.ERROR;
          } else if ("debug".equals(test)) {
              level = DebugLog.Level.DEBUG;
          } else if ("crit".equals(test) || "critical".equals(test)) {
              level = DebugLog.Level.CRIT;
          } else if ("info".equals(test) || "information".equals(test)) {
              level = DebugLog.Level.INFO;
          }
          return level;
      }
docs: Convert the input string into the appropriate debug log level setting.
  
  @param name
  @return DebugLog.Level