|
Log4j 1.3alpha-7 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.spi.ComponentBase
Most log4j components derive from this class.
Field Summary | |
protected LoggerRepository |
repository
|
Constructor Summary | |
ComponentBase()
|
Method Summary | |
protected ULogger |
getLogger()
Return an instance specific logger to be used by the component itself. |
protected LoggerRepository |
getLoggerRepository()
Return the LoggerRepository this component is attached to. |
protected ULogger |
getNonFloodingLogger()
Frequently called methods in log4j components can invoke this method in order to avoid flooding the output when logging lasting error conditions. |
protected void |
resetErrorCount()
Called by derived classes when they deem that the component has recovered from an erroneous state. |
void |
setLoggerRepository(LoggerRepository repository)
Set the owning repository. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected LoggerRepository repository
Constructor Detail |
public ComponentBase()
Method Detail |
protected void resetErrorCount()
public void setLoggerRepository(LoggerRepository repository)
setLoggerRepository
in interface Component
repository
- The repository where this appender is attached.protected LoggerRepository getLoggerRepository()
LoggerRepository
this component is attached to.
protected ULogger getLogger()
In case the repository for this component is not set,
this implementations returns a SimpleULogger
instance.
protected ULogger getNonFloodingLogger()
|
Log4j 1.3alpha-7 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |