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 TypeMethodDescriptionvoidvoidvoidvoidvoidfatalError(String message) voidfatalError(String message, Throwable throwable) org.apache.avalon.framework.logger.LoggergetChildLogger(String name) voidvoidbooleanbooleanbooleanbooleanbooleanvoidvoid
-
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:
debugin interfaceorg.apache.avalon.framework.logger.Logger- See Also:
-
debug
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfaceorg.apache.avalon.framework.logger.Logger- See Also:
-
info
- Specified by:
infoin interfaceorg.apache.avalon.framework.logger.Logger- See Also:
-
info
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabledin interfaceorg.apache.avalon.framework.logger.Logger- See Also:
-
warn
- Specified by:
warnin interfaceorg.apache.avalon.framework.logger.Logger- See Also:
-
warn
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabledin interfaceorg.apache.avalon.framework.logger.Logger- See Also:
-
error
- Specified by:
errorin interfaceorg.apache.avalon.framework.logger.Logger- See Also:
-
error
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabledin interfaceorg.apache.avalon.framework.logger.Logger- See Also:
-
fatalError
- Specified by:
fatalErrorin interfaceorg.apache.avalon.framework.logger.Logger- See Also:
-
fatalError
-
isFatalErrorEnabled
public boolean isFatalErrorEnabled()- Specified by:
isFatalErrorEnabledin interfaceorg.apache.avalon.framework.logger.Logger- See Also:
-
getChildLogger
- Specified by:
getChildLoggerin interfaceorg.apache.avalon.framework.logger.Logger- See Also:
-