code: private int getLevel(final Level recordLevel) {
      if (recordLevel.equals(Level.OFF)) {
        return 0;
      } else if (recordLevel.equals(Level.SEVERE)) {
        return 1;
      } else if (recordLevel.equals(Level.WARNING)) {
        return 2;
      } else if (recordLevel.equals(Level.ALL)) {
        return 4;
      } else {
        return 3;
      }
    }
docs: Returns the integer value of the log record's level to be used
  by the CLR Bridge log function.