org.apache.avalon.excalibur.logger
Class DefaultLogTargetManager

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.avalon.excalibur.logger.DefaultLogTargetManager
All Implemented Interfaces:
Configurable, LogEnabled, LogTargetFactoryManageable, LogTargetManager

public class DefaultLogTargetManager
extends AbstractLogEnabled
implements LogTargetManager, LogTargetFactoryManageable, Configurable

Default LogTargetManager implementation. It populates the LogTargetManager from a configuration file.

Since:
4.0
Version:
CVS $Revision: 1.14 $ $Date: 2004/03/10 13:54:50 $
Author:
Avalon Development Team

Constructor Summary
DefaultLogTargetManager()
           
 
Method Summary
 void configure(Configuration configuration)
          Reads a configuration object and creates the log targets.
 LogTarget getLogTarget(java.lang.String id)
          Retrieves a LogTarget for an ID.
 void setLogTargetFactoryManager(LogTargetFactoryManager logTargetFactoryManager)
          Gets the LogTargetFactoryManager.
 
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

DefaultLogTargetManager

public DefaultLogTargetManager()
Method Detail

getLogTarget

public final LogTarget getLogTarget(java.lang.String id)
Retrieves a LogTarget for an ID. If this LogTargetManager does not have the match a null will be returned.

Specified by:
getLogTarget in interface LogTargetManager
Parameters:
id - The LogTarget ID
Returns:
the LogTarget or null if none is found.

setLogTargetFactoryManager

public final void setLogTargetFactoryManager(LogTargetFactoryManager logTargetFactoryManager)
Gets the LogTargetFactoryManager.

Specified by:
setLogTargetFactoryManager in interface LogTargetFactoryManageable

configure

public final void configure(Configuration configuration)
                     throws ConfigurationException
Reads a configuration object and creates the log targets.

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


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