org.openorb.util.logger
Class AbstractLoggerTeam
java.lang.Object
|
+--org.openorb.util.logger.AbstractLoggerTeam
- All Implemented Interfaces:
- org.apache.avalon.framework.logger.Logger, LoggerTeam, LoggerTeam.StandardTags
- Direct Known Subclasses:
- DiagnosticsLoggerTeam, MainLoggerTeam
- public abstract class AbstractLoggerTeam
- extends Object
- implements LoggerTeam, LoggerTeam.StandardTags
Provides a common base class for LoggerTeam implementations.
- Version:
- $Revision: 1.3 $ $Date: 2003/05/02 15:40:03 $
- Author:
- Richard G Clark
|
Constructor Summary |
protected |
AbstractLoggerTeam(org.apache.avalon.framework.logger.Logger mainLogger)
Constructs this object with the specified main logger. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL_LOGGER
protected static final LoggerTeam NULL_LOGGER
- The null logger to be used for undefined tags.
AbstractLoggerTeam
protected AbstractLoggerTeam(org.apache.avalon.framework.logger.Logger mainLogger)
- Constructs this object with the specified main logger.
If no main logger is supplied then the null logger is used.
- Parameters:
mainLogger - the main logger of the team
isNullLogger
protected boolean isNullLogger()
- Indicates if this logger team is made up of only null loggers.
- Returns:
true if members are all null loggers,
false otherwise
createPrefixingLogger
protected final org.apache.avalon.framework.logger.Logger createPrefixingLogger(org.apache.avalon.framework.logger.Logger logger)
- Creates a prefixing version of the supplied logger.
- Parameters:
logger - the backing logger- Returns:
- the new logger
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.
- Specified by:
getMember in interface LoggerTeam
- See Also:
LoggerTeam.getMember(Object)
getChildLogger
public final org.apache.avalon.framework.logger.Logger getChildLogger(String name)
- Specified by:
getChildLogger in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.getChildLogger(String)
debug
public final void debug(String message)
- Specified by:
debug in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.debug(String)
debug
public final void debug(String message,
Throwable throwable)
- Specified by:
debug in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.debug(String,Throwable)
isDebugEnabled
public final boolean isDebugEnabled()
- Specified by:
isDebugEnabled in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.isDebugEnabled()
info
public final void info(String message)
- Specified by:
info in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.info(String)
info
public final void info(String message,
Throwable throwable)
- Specified by:
info in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.info(String,Throwable)
isInfoEnabled
public final boolean isInfoEnabled()
- Specified by:
isInfoEnabled in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.isInfoEnabled()
warn
public final void warn(String message)
- Specified by:
warn in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.warn(String)
warn
public final void warn(String message,
Throwable throwable)
- Specified by:
warn in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.warn(String,Throwable)
isWarnEnabled
public final boolean isWarnEnabled()
- Specified by:
isWarnEnabled in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.isWarnEnabled()
error
public final void error(String message)
- Specified by:
error in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.error(String)
error
public final void error(String message,
Throwable throwable)
- Specified by:
error in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.error(String,Throwable)
isErrorEnabled
public final boolean isErrorEnabled()
- Specified by:
isErrorEnabled in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.isErrorEnabled()
fatalError
public final void fatalError(String message)
- Specified by:
fatalError in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.fatalError(String)
fatalError
public final void fatalError(String message,
Throwable throwable)
- Specified by:
fatalError in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.fatalError(String,Throwable)
isFatalErrorEnabled
public final boolean isFatalErrorEnabled()
- Specified by:
isFatalErrorEnabled in interface org.apache.avalon.framework.logger.Logger
- See Also:
Logger.isFatalErrorEnabled()