Package org.apache.log4j.rule
Class LevelInequalityRule
- java.lang.Object
-
- org.apache.log4j.rule.LevelInequalityRule
-
public class LevelInequalityRule extends java.lang.ObjectA Rule class implementing inequality evaluation for Levels (log4j and util.logging) using the toInt method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classLevelInequalityRule.GreaterThanEqualsRuleRule returning true if event level greater than or equal to specified level.private static classLevelInequalityRule.GreaterThanRuleRule returning true if event level greater than specified level.private static classLevelInequalityRule.LessThanEqualsRuleRule returning true if event level less than or equal to specified level.private static classLevelInequalityRule.LessThanRuleRule returning true if event level less than specified level.
-
Field Summary
Fields Modifier and Type Field Description private static java.util.ListlevelListLevel list.private static java.util.ListutilLoggingLevelListList equivalents of java.util.logging levels.
-
Constructor Summary
Constructors Modifier Constructor Description privateLevelInequalityRule()Create new instance.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RulegetRule(java.lang.String inequalitySymbol, java.lang.String value)Create new rule.private static voidpopulateLevels()Populate list of levels.
-
-
-
Method Detail
-
populateLevels
private static void populateLevels()
Populate list of levels.
-
getRule
public static Rule getRule(java.lang.String inequalitySymbol, java.lang.String value)
Create new rule.- Parameters:
inequalitySymbol- inequality symbol.value- Symbolic name of comparison level.- Returns:
- instance of AbstractRule.
-
-