Package org.apache.log4j.rule
Class LevelInequalityRule
- java.lang.Object
-
- org.apache.log4j.rule.LevelInequalityRule
-
public class LevelInequalityRule extends java.lang.Object
A 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 class
LevelInequalityRule.GreaterThanEqualsRule
Rule returning true if event level greater than or equal to specified level.private static class
LevelInequalityRule.GreaterThanRule
Rule returning true if event level greater than specified level.private static class
LevelInequalityRule.LessThanEqualsRule
Rule returning true if event level less than or equal to specified level.private static class
LevelInequalityRule.LessThanRule
Rule returning true if event level less than specified level.
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List
levelList
Level list.private static java.util.List
utilLoggingLevelList
List equivalents of java.util.logging levels.
-
Constructor Summary
Constructors Modifier Constructor Description private
LevelInequalityRule()
Create new instance.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Rule
getRule(java.lang.String inequalitySymbol, java.lang.String value)
Create new rule.private static void
populateLevels()
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.
-
-