org.apache.commons.logging.impl
public class AvalonLogger extends Object implements Log, Serializable
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
instances created through the LogFactory mechanisms will output
to child loggers of this Logger.
Version: $Revision: 1.9 $ $Date: 2004/06/01 19:56:20 $
| Field Summary | |
|---|---|
| static Logger | defaultLogger Ancesteral avalon logger |
| Logger | logger Avalon logger used to perform log |
| String | name The name of this logger |
| Constructor Summary | |
|---|---|
| AvalonLogger(Logger logger)
Constructs an AvalonLogger that outputs to the given
Logger instance. | |
| AvalonLogger(String name) | |
| Method Summary | |
|---|---|
| void | debug(Object o, Throwable t) |
| void | debug(Object o) |
| void | error(Object o, Throwable t) |
| void | error(Object o) |
| void | fatal(Object o, Throwable t) |
| void | fatal(Object o) |
| Logger | getLogger()
Gets the Avalon logger implementation used to perform logging. |
| void | info(Object o, Throwable t) |
| void | info(Object o) |
| boolean | isDebugEnabled() |
| boolean | isErrorEnabled() |
| boolean | isFatalEnabled() |
| boolean | isInfoEnabled() |
| boolean | isTraceEnabled() |
| boolean | isWarnEnabled() |
| static void | setDefaultLogger(Logger logger)
Sets the ancesteral Avalon logger from which the delegating loggers
will descend. |
| void | trace(Object o, Throwable t) |
| void | trace(Object o) |
| void | warn(Object o, Throwable t) |
| void | warn(Object o) |
AvalonLogger that outputs to the given
Logger instance.Parameters: logger the avalon logger implementation to delegate to
AvalonLogger that will log to a child
of the Logger set by calling AvalonLogger.Parameters: name the name of the avalon logger implementation to delegate to
See Also: Log
See Also: Log
See Also: Log
See Also: Log
See Also: Log
See Also: Log
Returns: avalon logger implementation
See Also: Log
See Also: Log
See Also: isDebugEnabled
See Also: isErrorEnabled
See Also: isFatalEnabled
See Also: isInfoEnabled
See Also: isTraceEnabled
See Also: isWarnEnabled
Parameters: logger the default avalon logger, in case there is no logger instance supplied in constructor
See Also: Log
See Also: Log
See Also: Log
See Also: Log