java.lang.Object | |
↳ | org.apache.commons.logging.impl.AvalonLogger |
Implementation of commons-logging Log interface that delegates all logging calls to the Avalon logging abstraction: the Logger interface.
There are two ways in which this class can be used:
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.
setDefaultLogger(Logger)
class property can be called which
sets the ancesteral Avalon logger for this class. Any AvalonLogger
instances created through the LogFactory
mechanisms will output
to child loggers of this Logger
.
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an
AvalonLogger that outputs to the given
Logger instance. | |||||||||||
Constructs an
AvalonLogger that will log to a child
of the Logger set by calling setDefaultLogger(Logger) . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Logs a message with
org.apache.avalon.framework.logger.Logger.debug . | |||||||||||
Logs a message with
org.apache.avalon.framework.logger.Logger.debug . | |||||||||||
Logs a message with
org.apache.avalon.framework.logger.Logger.error . | |||||||||||
Logs a message with
org.apache.avalon.framework.logger.Logger.error . | |||||||||||
Logs a message with
org.apache.avalon.framework.logger.Logger.fatalError . | |||||||||||
Logs a message with
org.apache.avalon.framework.logger.Logger.fatalError . | |||||||||||
Gets the Avalon logger implementation used to perform logging.
| |||||||||||
Logs a message with
org.apache.avalon.framework.logger.Logger.info . | |||||||||||
Logs a message with
org.apache.avalon.framework.logger.Logger.info . | |||||||||||
Is logging to
org.apache.avalon.framework.logger.Logger.debug enabled? | |||||||||||
Is logging to
org.apache.avalon.framework.logger.Logger.error enabled? | |||||||||||
Is logging to
org.apache.avalon.framework.logger.Logger.fatalError enabled? | |||||||||||
Is logging to
org.apache.avalon.framework.logger.Logger.info enabled? | |||||||||||
Is logging to
org.apache.avalon.framework.logger.Logger.debug enabled? | |||||||||||
Is logging to
org.apache.avalon.framework.logger.Logger.warn enabled? | |||||||||||
Sets the ancesteral Avalon logger from which the delegating loggers
will descend.
| |||||||||||
Logs a message with
org.apache.avalon.framework.logger.Logger.debug . | |||||||||||
Logs a message with
org.apache.avalon.framework.logger.Logger.debug . | |||||||||||
Logs a message with
org.apache.avalon.framework.logger.Logger.warn . | |||||||||||
Logs a message with
org.apache.avalon.framework.logger.Logger.warn . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.commons.logging.Log
|
Constructs an AvalonLogger
that outputs to the given
Logger
instance.
logger | the avalon logger implementation to delegate to |
---|
Constructs an AvalonLogger
that will log to a child
of the Logger
set by calling setDefaultLogger(Logger)
.
name | the name of the avalon logger implementation to delegate to |
---|
Logs a message with
org.apache.avalon.framework.logger.Logger.debug
.
message | to log |
---|---|
t | log this cause |
Logs a message with
org.apache.avalon.framework.logger.Logger.debug
.
message | to log. |
---|
Logs a message with
org.apache.avalon.framework.logger.Logger.error
.
message | to log |
---|
Logs a message with
org.apache.avalon.framework.logger.Logger.error
.
message | to log |
---|---|
t | log this cause |
Logs a message with
org.apache.avalon.framework.logger.Logger.fatalError
.
message | to log |
---|
Logs a message with
org.apache.avalon.framework.logger.Logger.fatalError
.
message | to log. |
---|---|
t | log this cause. |
Gets the Avalon logger implementation used to perform logging.
Logs a message with
org.apache.avalon.framework.logger.Logger.info
.
message | to log |
---|
Logs a message with
org.apache.avalon.framework.logger.Logger.info
.
message | to log |
---|---|
t | log this cause |
Is logging to
org.apache.avalon.framework.logger.Logger.debug
enabled?
Is logging to
org.apache.avalon.framework.logger.Logger.error
enabled?
Is logging to
org.apache.avalon.framework.logger.Logger.fatalError
enabled?
Is logging to
org.apache.avalon.framework.logger.Logger.info
enabled?
Is logging to
org.apache.avalon.framework.logger.Logger.debug
enabled?
Is logging to
org.apache.avalon.framework.logger.Logger.warn
enabled?
Sets the ancesteral Avalon logger from which the delegating loggers will descend.
logger | the default avalon logger, in case there is no logger instance supplied in constructor |
---|
Logs a message with
org.apache.avalon.framework.logger.Logger.debug
.
message | to log |
---|
Logs a message with
org.apache.avalon.framework.logger.Logger.debug
.
message | to log. |
---|---|
t | log this cause. |
Logs a message with
org.apache.avalon.framework.logger.Logger.warn
.
message | to log |
---|---|
t | log this cause |
Logs a message with
org.apache.avalon.framework.logger.Logger.warn
.
message | to log |
---|