Class LoggerManagerTee

  extended byorg.apache.avalon.excalibur.logger.util.AvalonTee
      extended byorg.apache.avalon.excalibur.logger.util.LoggerManagerTee
All Implemented Interfaces:
Configurable, Contextualizable, Disposable, LogEnabled, LoggerManager, Startable

public class LoggerManagerTee
extends AvalonTee
implements LoggerManager

An AvalonTee object is not usefull by itself as it does not implement any component interface. Its primary use is to serve as a base class for objects proxing not only lifecycle but also some "meaningfull" interfaces. This object proxies LoggerManager interface.

CVS $Revision: 1.3 $ $Date: 2004/03/10 13:54:51 $
Avalon Development Team

Field Summary
Fields inherited from interface org.apache.avalon.excalibur.logger.LoggerManager
Constructor Summary
LoggerManagerTee(LoggerManager loggerManager)
          Creates a new instance of LoggerManagerTee.
Method Summary
 Logger getDefaultLogger()
          Return the default Logger.
 Logger getLoggerForCategory(java.lang.String categoryName)
          Return the Logger for the specified category.
Methods inherited from class org.apache.avalon.excalibur.logger.util.AvalonTee
addTee, configure, contextualize, dispose, enableLogging, makeReadOnly, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public LoggerManagerTee(LoggerManager loggerManager)
Creates a new instance of LoggerManagerTee. Adds the supplied LoggerManager as the first tee. (It will receive the lifecycle events first of all tees).

Method Detail


public Logger getLoggerForCategory(java.lang.String categoryName)
Return the Logger for the specified category.

Specified by:
getLoggerForCategory in interface LoggerManager


public Logger getDefaultLogger()
Return the default Logger. This is basically the same as getting the Logger for the "" category.

Specified by:
getDefaultLogger in interface LoggerManager

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