Package org.apache.log4j.rule
Class LevelInequalityRule
java.lang.Object
org.apache.log4j.rule.LevelInequalityRule
A Rule class implementing inequality evaluation for Levels (log4j and
util.logging) using the toInt method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Rule returning true if event level greater than or equal to specified level.private static final class
Rule returning true if event level greater than specified level.private static final class
Rule returning true if event level less than or equal to specified level.private static final class
Rule returning true if event level less than specified level. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Rule
Create new rule.private static void
Populate list of levels.
-
Field Details
-
levelList
Level list. -
utilLoggingLevelList
List equivalents of java.util.logging levels.
-
-
Constructor Details
-
LevelInequalityRule
private LevelInequalityRule()Create new instance.
-
-
Method Details
-
populateLevels
private static void populateLevels()Populate list of levels. -
getRule
Create new rule.- Parameters:
inequalitySymbol
- inequality symbol.value
- Symbolic name of comparison level.- Returns:
- instance of AbstractRule.
-