Class CommonsLogger
java.lang.Object
org.apache.avalon.framework.logger.CommonsLogger
- All Implemented Interfaces:
org.apache.avalon.framework.logger.Logger
An Avalon
Logger
implementation backed by a
of commons lLogging.- Since:
- 4.3
- Version:
- $Id: CommonsLogger.java 233132 2005-08-17 02:32:45 -0500 (Wed, 17 Aug 2005) cziegeler $
- Author:
- Avalon Development Team
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCommonsLogger
(org.apache.commons.logging.Log log, String name) Construct a CommonsLogger. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
fatalError
(String message) void
fatalError
(String message, Throwable throwable) org.apache.avalon.framework.logger.Logger
getChildLogger
(String name) void
void
boolean
boolean
boolean
boolean
boolean
void
void
-
Field Details
-
log
private final org.apache.commons.logging.Log log -
name
-
-
Constructor Details
-
CommonsLogger
Construct a CommonsLogger. The constructor needs explicitly the name of the commons-logger, since the commons-logging API misses the functionality to retrieve it from the logger instance.- Parameters:
log
- The logger of commons-logging.name
- The name of the logger.- Since:
- 2.0
-
-
Method Details
-
debug
- Specified by:
debug
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
debug
- Specified by:
debug
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
info
- Specified by:
info
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
info
- Specified by:
info
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
warn
- Specified by:
warn
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
warn
- Specified by:
warn
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
error
- Specified by:
error
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
error
- Specified by:
error
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
fatalError
- Specified by:
fatalError
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
fatalError
- Specified by:
fatalError
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
isFatalErrorEnabled
public boolean isFatalErrorEnabled()- Specified by:
isFatalErrorEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-
getChildLogger
- Specified by:
getChildLogger
in interfaceorg.apache.avalon.framework.logger.Logger
- See Also:
-