org.apache.avalon.excalibur.logger.logkit
Class LogKitConfHelper
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.excalibur.logger.logkit.LogKitConfHelper
- All Implemented Interfaces:
- org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled
public class LogKitConfHelper
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Disposable
Tie this object to a LoggerManagerTee, give it the Hierachy
that LogKitAdapter operates upon and it will populate it
from the Configuration object passed via configure().
Note: this class assumes that this is a new Hierarchy,
freshly created with new Hierarchy() not populated before.
- Since:
- 4.0
- Version:
- CVS $Revision: 1.6 $ $Date: 2004/03/10 13:54:51 $
- Author:
- Avalon Development Team
Method Summary |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Populates the underlying Hierarchy . |
void |
contextualize(org.apache.avalon.framework.context.Context context)
Reads a context object that will be supplied to the log target factory manager. |
void |
dispose()
Closes all our LogTargets. |
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 |
LogKitConfHelper
public LogKitConfHelper(org.apache.log.Hierarchy hierarchy)
contextualize
public final void contextualize(org.apache.avalon.framework.context.Context context)
throws org.apache.avalon.framework.context.ContextException
- Reads a context object that will be supplied to the log target factory manager.
- 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
- Populates the underlying
Hierarchy
.
- 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
dispose
public void dispose()
- Closes all our LogTargets.
- Specified by:
dispose
in interface org.apache.avalon.framework.activity.Disposable
Copyright © 1997-2008 Apache Software Foundation. All Rights Reserved.