org.apache.avalon.framework.logger
public abstract class AbstractLoggable extends Object implements Loggable
Deprecated: Use AbstractLogEnabled instead.
Utility class to allow construction of easy components that will perform logging.Version: $Id: AbstractLoggable.java 30977 2004-07-30 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $
Field Summary | |
---|---|
Logger | m_logger |
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