org.openorb.util.logger
Class DiagnosticsLoggerTeam

java.lang.Object
  |
  +--org.openorb.util.logger.AbstractLoggerTeam
        |
        +--org.openorb.util.logger.DiagnosticsLoggerTeam
All Implemented Interfaces:
org.apache.avalon.framework.logger.Logger, LoggerTeam, LoggerTeam.StandardTags

public final class DiagnosticsLoggerTeam
extends AbstractLoggerTeam

Provides a main and diagnostics logger team.

Version:
$Revision: 1.4 $ $Date: 2003/05/02 15:40:03 $
Author:
Richard G Clark

Inner classes inherited from class org.openorb.util.logger.LoggerTeam
LoggerTeam.StandardTags
 
Fields inherited from class org.openorb.util.logger.AbstractLoggerTeam
NULL_LOGGER
 
Fields inherited from interface org.openorb.util.logger.LoggerTeam.StandardTags
DIAGNOSTIC_LOGGER_TAG, MAIN_LOGGER_TAG
 
Constructor Summary
DiagnosticsLoggerTeam(org.apache.avalon.framework.logger.Logger mainLogger, org.apache.avalon.framework.logger.Logger diagnosticsLogger)
          Constructs this object with the specified main and diagnostics logger.
 
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.
protected  boolean isNullLogger()
          Indicates if this logger team is made up of only null loggers.
static LoggerTeam narrow(org.apache.avalon.framework.logger.Logger logger, org.apache.avalon.framework.logger.Logger diagnosticsParent, String childName)
          Narrow a Logger to a LoggerTeam by either casting or wrapping in and instance of DiagnosticsLoggerTeam using the specified child logger.
 
Methods inherited from class org.openorb.util.logger.AbstractLoggerTeam
createPrefixingLogger, debug, debug, error, error, fatalError, fatalError, getChildLogger, info, info, isDebugEnabled, isErrorEnabled, isFatalErrorEnabled, isInfoEnabled, isWarnEnabled, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagnosticsLoggerTeam

public DiagnosticsLoggerTeam(org.apache.avalon.framework.logger.Logger mainLogger,
                             org.apache.avalon.framework.logger.Logger diagnosticsLogger)
Constructs this object with the specified main and diagnostics logger. If no loggers are supplied then the null logger is used.
Parameters:
mainLogger - the main logger of the team
diagnosticsLogger - the diagnostics logger of the team
Method Detail

isNullLogger

protected boolean isNullLogger()
Description copied from class: AbstractLoggerTeam
Indicates if this logger team is made up of only null loggers.
Overrides:
isNullLogger in class AbstractLoggerTeam
See Also:
AbstractLoggerTeam.isNullLogger()

getMember

public org.apache.avalon.framework.logger.Logger getMember(Object tag)
Description copied from interface: LoggerTeam
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.
Overrides:
getMember in class AbstractLoggerTeam
See Also:
LoggerTeam.getMember(Object)

createChildLoggerTeam

public LoggerTeam createChildLoggerTeam(String name)
Description copied from interface: LoggerTeam
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.
See Also:
LoggerTeam.createChildLoggerTeam(String)

createPrefixingLoggerTeam

public LoggerTeam createPrefixingLoggerTeam()
Description copied from interface: LoggerTeam
Creates a prefixing version of this LoggerTeam.
See Also:
LoggerTeam.createPrefixingLoggerTeam()

narrow

public static LoggerTeam narrow(org.apache.avalon.framework.logger.Logger logger,
                                org.apache.avalon.framework.logger.Logger diagnosticsParent,
                                String childName)
Narrow a Logger to a LoggerTeam by either casting or wrapping in and instance of DiagnosticsLoggerTeam using the specified child logger.
Parameters:
logger - the logger to be narrowed
diagnosticsParent - the parent logger to create the child from
childName - the child name to be used
Returns:
the narrowed logger