|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.avalon.excalibur.logger.DefaultLogKitManager
Default LogManager implementation. It populates the LogManager from a configuration file.
Constructor Summary | |
DefaultLogKitManager()
Deprecated. Creates a new DefaultLogKitManager . |
|
DefaultLogKitManager(Hierarchy hierarchy)
Deprecated. Creates a new DefaultLogKitManager with an existing Hierarchy . |
|
DefaultLogKitManager(java.lang.String prefix)
Deprecated. Creates a new DefaultLogKitManager using
specified logger name as root logger. |
|
DefaultLogKitManager(java.lang.String prefix,
Hierarchy hierarchy)
Deprecated. Creates a new DefaultLogKitManager with an existing Hierarchy using
specified logger name as root logger. |
Method Summary | |
void |
configure(Configuration configuration)
Deprecated. Reads a configuration object and creates the category mapping. |
void |
contextualize(Context context)
Deprecated. Reads a context object. |
Hierarchy |
getHierarchy()
Deprecated. Retrieve Hierarchy for Loggers configured by the system. |
Logger |
getLogger(java.lang.String categoryName)
Deprecated. Retrieves a Logger from a category name. |
void |
setLogger(Logger logger)
Deprecated. Provide component with a logger. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultLogKitManager()
DefaultLogKitManager
. It will use a new Hierarchy
.
public DefaultLogKitManager(Hierarchy hierarchy)
DefaultLogKitManager
with an existing Hierarchy
.
public DefaultLogKitManager(java.lang.String prefix)
DefaultLogKitManager
using
specified logger name as root logger.
public DefaultLogKitManager(java.lang.String prefix, Hierarchy hierarchy)
DefaultLogKitManager
with an existing Hierarchy
using
specified logger name as root logger.
Method Detail |
public void setLogger(Logger logger)
Loggable
setLogger
in interface Loggable
logger
- the loggerpublic final Logger getLogger(java.lang.String categoryName)
getLogger
in interface LogKitManager
categoryName
- The category name of a configured Logger.
public Hierarchy getHierarchy()
getHierarchy
in interface LogKitManager
public final void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
context
- The context object.
ContextException
- if the context is malformedpublic final void configure(Configuration configuration) throws ConfigurationException
<categories/>
element has an attribute
named debug
, it will try to load a configuration file
specified by that attribute. The contents of that configuration
file will be the same as the <categories/>
element.
configure
in interface Configurable
configuration
- The configuration object.
ConfigurationException
- if the configuration is malformed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |