org.openorb.util.logger
Interface LoggerTeam

All Superinterfaces:
org.apache.avalon.framework.logger.Logger
All Known Implementing Classes:
NullLoggerTeam, AbstractLoggerTeam

public interface LoggerTeam
extends org.apache.avalon.framework.logger.Logger

An extension to the Logger interface to allow a team of supplementary loggers to associated with a main logger. It is the main logger which handles the standard logger requests.

Version:
$Revision: 1.2 $ $Date: 2003/05/02 14:23:57 $
Author:
Richard G Clark

Inner Class Summary
static interface LoggerTeam.StandardTags
          The current set of standard tags used to identify member loggers.
 
Method Summary
 LoggerTeam createChildLoggerTeam(String name)
          Creates a new child LoggerTeam with the specified name.
 LoggerTeam createPrefixingLoggerTeam()
          Creates a prefixing version of this LoggerTeam.
 org.apache.avalon.framework.logger.Logger getMember(Object tag)
          Returns the memeber logger associated with the tag.
 
Methods inherited from interface org.apache.avalon.framework.logger.Logger
debug, debug, error, error, fatalError, fatalError, getChildLogger, info, info, isDebugEnabled, isErrorEnabled, isFatalErrorEnabled, isInfoEnabled, isWarnEnabled, warn, warn
 

Method Detail

getMember

public org.apache.avalon.framework.logger.Logger getMember(Object tag)
Returns the memeber logger associated with the tag. This operation will always return a logger as an undefined tag is implicitly associated with a NullLogger.
Parameters:
tag - the logger's tag
Returns:
a logger

createChildLoggerTeam

public LoggerTeam createChildLoggerTeam(String name)
Creates a new child LoggerTeam with the specified name. This operation has the same function as the getChildLogger operation, but avoids the need to cast to LoggerTeam.
Parameters:
name - the new child's name
Returns:
the new logger
Throws:
IllegalArgumentException - if name is an empty string
See Also:
Logger.getChildLogger(String)

createPrefixingLoggerTeam

public LoggerTeam createPrefixingLoggerTeam()
Creates a prefixing version of this LoggerTeam.
Returns:
the new logger