Package org.apache.commons.logging.impl
Class AvalonLogger
java.lang.Object
org.apache.commons.logging.impl.AvalonLogger
- All Implemented Interfaces:
- Log
Deprecated.
Scheduled for removal because the Apache Avalon Project has been discontinued.
Implements Commons Logging's Log interface to delegate all
 logging calls to the Avalon logging abstraction: the Logger interface.
 
There are two ways in which this class can be used:
- the instance can be constructed with an Avalon logger
 (by calling AvalonLogger(Logger)). In this case, it acts as a simple thin wrapping implementation over the logger. This is particularly useful when using a property setter.
- the setDefaultLogger(org.apache.avalon.framework.logger.Logger)class property can be called which sets the ancestral Avalon logger for this class. AnyAvalonLoggerinstances created through theLogFactorymechanisms will output to child loggers of thisLogger.
 Note: AvalonLogger does not implement Serializable
 because the constructors available for it make this impossible to achieve in all
 circumstances; there is no way to "reconnect" to an underlying Logger object on
 deserialization if one was just passed in to the constructor of the original
 object. This class was marked Serializable in the 1.0.4 release of
 commons-logging, but this never actually worked (a NullPointerException would
 be thrown as soon as the deserialized object was used), so removing this marker
 is not considered to be an incompatible change.
- 
Constructor SummaryConstructorsConstructorDescriptionAvalonLogger(String name) Deprecated.Constructs anAvalonLoggerthat will log to a child of theLoggerset by callingsetDefaultLogger(org.apache.avalon.framework.logger.Logger).AvalonLogger(org.apache.avalon.framework.logger.Logger logger) Deprecated.Constructs anAvalonLoggerthat outputs to the givenLoggerinstance.
- 
Method SummaryModifier and TypeMethodDescriptionvoidDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug.voidDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug.voidDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.error.voidDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.error.voidDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.fatalError.voidDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.fatalError.org.apache.avalon.framework.logger.LoggerDeprecated.Gets the Avalon logger implementation used to perform logging.voidDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.info.voidDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.info.booleanDeprecated.Is logging toorg.apache.avalon.framework.logger.Logger.debugenabled?booleanDeprecated.Is logging toorg.apache.avalon.framework.logger.Logger.errorenabled?booleanDeprecated.Is logging toorg.apache.avalon.framework.logger.Logger.fatalErrorenabled?booleanDeprecated.Is logging toorg.apache.avalon.framework.logger.Logger.infoenabled?booleanDeprecated.Is logging toorg.apache.avalon.framework.logger.Logger.debugenabled?booleanDeprecated.Is logging toorg.apache.avalon.framework.logger.Logger.warnenabled?static voidsetDefaultLogger(org.apache.avalon.framework.logger.Logger logger) Deprecated.Sets the ancestral Avalon logger from which the delegating loggers will descend.voidDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug.voidDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug.voidDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.warn.voidDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.warn.
- 
Constructor Details- 
AvalonLoggerDeprecated.Constructs anAvalonLoggerthat outputs to the givenLoggerinstance.- Parameters:
- logger- the Avalon logger implementation to delegate to
 
- 
AvalonLoggerDeprecated.Constructs anAvalonLoggerthat will log to a child of theLoggerset by callingsetDefaultLogger(org.apache.avalon.framework.logger.Logger).- Parameters:
- name- the name of the avalon logger implementation to delegate to
 
 
- 
- 
Method Details- 
setDefaultLoggerDeprecated.Sets the ancestral Avalon logger from which the delegating loggers will descend.- Parameters:
- logger- the default avalon logger, in case there is no logger instance supplied in constructor
 
- 
debugDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug.
- 
debugDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug.
- 
errorDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.error.
- 
errorDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.error.
- 
fatalDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.fatalError.
- 
fatalDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.fatalError.
- 
getLoggerDeprecated.Gets the Avalon logger implementation used to perform logging.- Returns:
- avalon logger implementation
 
- 
infoDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.info.
- 
infoDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.info.
- 
isDebugEnabledDeprecated.Is logging toorg.apache.avalon.framework.logger.Logger.debugenabled?- Specified by:
- isDebugEnabledin interface- Log
- Returns:
- true if debug is enabled in the underlying logger.
- See Also:
 
- 
isErrorEnabledDeprecated.Is logging toorg.apache.avalon.framework.logger.Logger.errorenabled?- Specified by:
- isErrorEnabledin interface- Log
- Returns:
- true if error is enabled in the underlying logger.
- See Also:
 
- 
isFatalEnabledDeprecated.Is logging toorg.apache.avalon.framework.logger.Logger.fatalErrorenabled?- Specified by:
- isFatalEnabledin interface- Log
- Returns:
- true if fatal is enabled in the underlying logger.
- See Also:
 
- 
isInfoEnabledDeprecated.Is logging toorg.apache.avalon.framework.logger.Logger.infoenabled?- Specified by:
- isInfoEnabledin interface- Log
- Returns:
- true if info is enabled in the underlying logger.
- See Also:
 
- 
isTraceEnabledDeprecated.Is logging toorg.apache.avalon.framework.logger.Logger.debugenabled?- Specified by:
- isTraceEnabledin interface- Log
- Returns:
- true if trace is enabled in the underlying logger.
- See Also:
 
- 
isWarnEnabledDeprecated.Is logging toorg.apache.avalon.framework.logger.Logger.warnenabled?- Specified by:
- isWarnEnabledin interface- Log
- Returns:
- true if warn is enabled in the underlying logger.
- See Also:
 
- 
traceDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug.
- 
traceDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug.
- 
warnDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.warn.
- 
warnDeprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.warn.
 
-