|
Log4j 1.3alpha-1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface that defines the required methods for supporting the setting and getting of a level threshold. Components should implement this interface if logging events they process should meet a certain threshold before being processed further. Examples of this are Appenders and Receivers which will not process logging events unless the event level is at or greater than a set threshold level.
Method Summary | |
Level |
getThreshold()
Gets the current threshold setting of the component. |
boolean |
isAsSevereAsThreshold(Level level)
Returns true if the given level is equals or greater than the current threshold value of the component. |
void |
setThreshold(Level level)
Sets the component theshold to the given level. |
Method Detail |
public void setThreshold(Level level)
level
- The threshold level events must equal or be greater
than before further processing can be done.public Level getThreshold()
public boolean isAsSevereAsThreshold(Level level)
level
- The level to test against the component threshold.
|
Log4j 1.3alpha-1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |