org.apache.avalon.excalibur.logger.logkit
Class LogKitConfHelper

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.avalon.excalibur.logger.logkit.LogKitConfHelper
All Implemented Interfaces:
Configurable, Contextualizable, Disposable, LogEnabled

public class LogKitConfHelper
extends AbstractLogEnabled
implements Contextualizable, Configurable, 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

Constructor Summary
LogKitConfHelper(Hierarchy hierarchy)
           
 
Method Summary
 void configure(Configuration configuration)
          Populates the underlying Hierarchy.
 void contextualize(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
 

Constructor Detail

LogKitConfHelper

public LogKitConfHelper(Hierarchy hierarchy)
Method Detail

contextualize

public final void contextualize(Context context)
                         throws ContextException
Reads a context object that will be supplied to the log target factory manager.

Specified by:
contextualize in interface Contextualizable
Parameters:
context - The context object.
Throws:
ContextException - if the context is malformed

configure

public final void configure(Configuration configuration)
                     throws ConfigurationException
Populates the underlying Hierarchy.

Specified by:
configure in interface Configurable
Parameters:
configuration - The configuration object.
Throws:
ConfigurationException - if the configuration is malformed

dispose

public void dispose()
Closes all our LogTargets.

Specified by:
dispose in interface Disposable


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.