|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.dna.AbstractLogEnabled
Abstract utility class that components can extend to make it easy to implement logging.
Constructor Summary | |
AbstractLogEnabled()
|
Method Summary | |
void |
enableLogging(Logger logger)
Set the components logger. |
protected Logger |
getLogger()
Return the components logger. |
protected void |
setupLogger(java.lang.Object object)
Utility method to setup specified object with current components logger. |
protected void |
setupLogger(java.lang.Object object,
java.lang.String name)
Utility method to setup specified object with a child logger of components current logger with specified name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractLogEnabled()
Method Detail |
public void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
logger
- the loggerprotected final Logger getLogger()
protected final void setupLogger(java.lang.Object object)
object
- the objectprotected final void setupLogger(java.lang.Object object, java.lang.String name)
object
- the objectname
- the name of child logger
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |