public static Rule getRule(final String value) {
    Level thisLevel;
    if (levelList.contains(value.toUpperCase())) {
      thisLevel = Level.parse(value.toUpperCase());
    } else {
      thisLevel = Level.FINEST;
    }

    return new NotLevelEqualsRule(thisLevel);
  }
Create new rule.

@param value name of level.
@return instance of NotLevelEqualsRule.
olv-core/src/main/java/pl/otros/logview/accept/query/org/apache/log4j/rule/NotLevelEqualsRule.java