|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Filter is used to regulate the levels of log records that are logged. To facilitate dynamic access of properties (such as the levels the logger should be allowed to log) the Filter holds a reference to it's assigned logger. In this way, the filter is able to ask its logger for whatever variables the Filter requires to do its job.
Method Summary | |
Logger |
getLogger()
The implementation of this method returns the Logger to which the filter belongs. |
boolean |
isLoggable(LogRecord logRecord)
Defines a method used to determine if the supplied log record can pass through the filter. |
void |
setLogger(Logger logger)
The implementation of this method assigns the Logger to which the filter belongs. |
Method Detail |
public boolean isLoggable(LogRecord logRecord)
logRecord
- the logRecord used to determine log-ability.public void setLogger(Logger logger)
logger
- The Logger to which this Filter belongs.public Logger getLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |