org.apache.avalon.framework.logger
public abstract class AbstractLoggable extends Object implements Loggable
Deprecated: Use {@link AbstractLogEnabled} instead.
Utility class to allow construction of easy components that will perform logging.Version: CVS $Revision: 1.17 $ $Date: 2003/02/11 15:58:40 $
Method Summary | |
---|---|
protected Logger | getLogger()
Helper method to allow sub-classes to aquire logger.
|
void | setLogger(Logger logger)
Set the components logger.
|
protected void | setupLogger(Object component)
Helper method to setup other components with same logger.
|
protected void | setupLogger(Object component, String subCategory)
Helper method to setup other components with logger.
|
protected void | setupLogger(Object component, Logger logger)
Helper method to setup other components with logger.
|
There is no performance penalty as this is a final method and will be inlined by the JVM.
Returns: the Logger
Parameters: logger the logger
Parameters: component the component to pass logger object to
Parameters: component the component to pass logger object to subCategory the subcategory to use (may be null)
Parameters: component the component to pass logger object to logger the Logger