org.apache.avalon.excalibur.logger
Class DefaultLogKitManager
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.avalon.excalibur.logger.DefaultLogKitManager
- All Implemented Interfaces:
- org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.Loggable, LogKitManager
- public class DefaultLogKitManager
- extends org.apache.avalon.framework.logger.AbstractLoggable
- implements LogKitManager, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.configuration.Configurable
Default LogManager implementation. It populates the LogManager
from a configuration file.
- Since:
- 4.0
- Version:
- CVS $Revision: 1.4 $ $Date: 2001/09/11 13:14:19 $
- Author:
- Giacomo Pati
Method Summary |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Reads a configuration object and creates the category mapping. |
void |
contextualize(org.apache.avalon.framework.context.Context context)
Reads a context object. |
org.apache.log.Logger |
getLogger(java.lang.String categoryName)
Retrieves a Logger from a category name. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLogKitManager
public DefaultLogKitManager()
- Creates a new
DefaultLogKitManager
. It will use a new Hierarchy
.
DefaultLogKitManager
public DefaultLogKitManager(org.apache.log.Hierarchy hierarchy)
- Creates a new
DefaultLogKitManager
with an existing Hierarchy
.
getLogger
public final org.apache.log.Logger getLogger(java.lang.String categoryName)
- Retrieves a Logger from a category name. Usually
the category name refers to a configuration attribute name. If
this LogKitManager does not have the match the default Logger will
be returned and a warning is issued.
- Specified by:
getLogger
in interface LogKitManager
- Parameters:
categoryName
- The category name of a configured Logger.- Returns:
- the Logger.
contextualize
public final void contextualize(org.apache.avalon.framework.context.Context context)
throws org.apache.avalon.framework.context.ContextException
- Reads a context object.
- Specified by:
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
- Parameters:
context
- The context object.- Throws:
org.apache.avalon.framework.context.ContextException
- if the context is malformed
configure
public final void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Reads a configuration object and creates the category mapping.
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Parameters:
configuration
- The configuration object.- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- if the configuration is malformed
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.