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. AnyAvalonLogger
instances created through theLogFactory
mechanisms 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 Summary
ConstructorDescriptionAvalonLogger
(String name) Deprecated.Constructs anAvalonLogger
that will log to a child of theLogger
set by callingsetDefaultLogger(org.apache.avalon.framework.logger.Logger)
.AvalonLogger
(org.apache.avalon.framework.logger.Logger logger) Deprecated.Constructs anAvalonLogger
that outputs to the givenLogger
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug
.void
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug
.void
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.error
.void
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.error
.void
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.fatalError
.void
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.fatalError
.org.apache.avalon.framework.logger.Logger
Deprecated.Gets the Avalon logger implementation used to perform logging.void
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.info
.void
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.info
.boolean
Deprecated.Is logging toorg.apache.avalon.framework.logger.Logger.debug
enabled?boolean
Deprecated.Is logging toorg.apache.avalon.framework.logger.Logger.error
enabled?boolean
Deprecated.Is logging toorg.apache.avalon.framework.logger.Logger.fatalError
enabled?boolean
Deprecated.Is logging toorg.apache.avalon.framework.logger.Logger.info
enabled?boolean
Deprecated.Is logging toorg.apache.avalon.framework.logger.Logger.debug
enabled?boolean
Deprecated.Is logging toorg.apache.avalon.framework.logger.Logger.warn
enabled?static void
setDefaultLogger
(org.apache.avalon.framework.logger.Logger logger) Deprecated.Sets the ancestral Avalon logger from which the delegating loggers will descend.void
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug
.void
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug
.void
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.warn
.void
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.warn
.
-
Constructor Details
-
AvalonLogger
Deprecated.Constructs anAvalonLogger
that outputs to the givenLogger
instance.- Parameters:
logger
- the Avalon logger implementation to delegate to
-
AvalonLogger
Deprecated.Constructs anAvalonLogger
that will log to a child of theLogger
set by callingsetDefaultLogger(org.apache.avalon.framework.logger.Logger)
.- Parameters:
name
- the name of the avalon logger implementation to delegate to
-
-
Method Details
-
setDefaultLogger
Deprecated.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
-
debug
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug
. -
debug
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug
. -
error
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.error
. -
error
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.error
. -
fatal
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.fatalError
. -
fatal
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.fatalError
. -
getLogger
Deprecated.Gets the Avalon logger implementation used to perform logging.- Returns:
- avalon logger implementation
-
info
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.info
. -
info
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.info
. -
isDebugEnabled
Deprecated.Is logging toorg.apache.avalon.framework.logger.Logger.debug
enabled?- Specified by:
isDebugEnabled
in interfaceLog
- Returns:
- true if debug is enabled in the underlying logger.
- See Also:
-
isErrorEnabled
Deprecated.Is logging toorg.apache.avalon.framework.logger.Logger.error
enabled?- Specified by:
isErrorEnabled
in interfaceLog
- Returns:
- true if error is enabled in the underlying logger.
- See Also:
-
isFatalEnabled
Deprecated.Is logging toorg.apache.avalon.framework.logger.Logger.fatalError
enabled?- Specified by:
isFatalEnabled
in interfaceLog
- Returns:
- true if fatal is enabled in the underlying logger.
- See Also:
-
isInfoEnabled
Deprecated.Is logging toorg.apache.avalon.framework.logger.Logger.info
enabled?- Specified by:
isInfoEnabled
in interfaceLog
- Returns:
- true if info is enabled in the underlying logger.
- See Also:
-
isTraceEnabled
Deprecated.Is logging toorg.apache.avalon.framework.logger.Logger.debug
enabled?- Specified by:
isTraceEnabled
in interfaceLog
- Returns:
- true if trace is enabled in the underlying logger.
- See Also:
-
isWarnEnabled
Deprecated.Is logging toorg.apache.avalon.framework.logger.Logger.warn
enabled?- Specified by:
isWarnEnabled
in interfaceLog
- Returns:
- true if warn is enabled in the underlying logger.
- See Also:
-
trace
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug
. -
trace
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.debug
. -
warn
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.warn
. -
warn
Deprecated.Logs a message withorg.apache.avalon.framework.logger.Logger.warn
.
-