|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.CommonsLogger
An Avalon Logger
implementation backed by a
of commons lLogging.
Constructor Summary | |
CommonsLogger(org.apache.commons.logging.Log log,
java.lang.String name)
Construct a CommonsLogger. |
Method Summary | |
void |
debug(java.lang.String message)
Log a debug message. |
void |
debug(java.lang.String message,
java.lang.Throwable throwable)
Log a debug message. |
void |
error(java.lang.String message)
Log a error message. |
void |
error(java.lang.String message,
java.lang.Throwable throwable)
Log a error message. |
void |
fatalError(java.lang.String message)
Log a fatalError message. |
void |
fatalError(java.lang.String message,
java.lang.Throwable throwable)
Log a fatalError message. |
Logger |
getChildLogger(java.lang.String name)
Create a new child logger. |
void |
info(java.lang.String message)
Log a info message. |
void |
info(java.lang.String message,
java.lang.Throwable throwable)
Log a info message. |
boolean |
isDebugEnabled()
Determine if messages of priority "debug" will be logged. |
boolean |
isErrorEnabled()
Determine if messages of priority "error" will be logged. |
boolean |
isFatalErrorEnabled()
Determine if messages of priority "fatalError" will be logged. |
boolean |
isInfoEnabled()
Determine if messages of priority "info" will be logged. |
boolean |
isWarnEnabled()
Determine if messages of priority "warn" will be logged. |
void |
warn(java.lang.String message)
Log a warn message. |
void |
warn(java.lang.String message,
java.lang.Throwable throwable)
Log a warn message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CommonsLogger(org.apache.commons.logging.Log log, java.lang.String name)
log
- The logger of commons-logging.name
- The name of the logger.Method Detail |
public void debug(java.lang.String message)
Logger
debug
in interface Logger
message
- the messageLogger.debug(java.lang.String)
public void debug(java.lang.String message, java.lang.Throwable throwable)
Logger
debug
in interface Logger
message
- the messagethrowable
- the throwableLogger.debug(java.lang.String, java.lang.Throwable)
public boolean isDebugEnabled()
Logger
isDebugEnabled
in interface Logger
Logger.isDebugEnabled()
public void info(java.lang.String message)
Logger
info
in interface Logger
message
- the messageLogger.info(java.lang.String)
public void info(java.lang.String message, java.lang.Throwable throwable)
Logger
info
in interface Logger
message
- the messagethrowable
- the throwableLogger.info(java.lang.String, java.lang.Throwable)
public boolean isInfoEnabled()
Logger
isInfoEnabled
in interface Logger
Logger.isInfoEnabled()
public void warn(java.lang.String message)
Logger
warn
in interface Logger
message
- the messageLogger.warn(java.lang.String)
public void warn(java.lang.String message, java.lang.Throwable throwable)
Logger
warn
in interface Logger
message
- the messagethrowable
- the throwableLogger.warn(java.lang.String, java.lang.Throwable)
public boolean isWarnEnabled()
Logger
isWarnEnabled
in interface Logger
Logger.isWarnEnabled()
public void error(java.lang.String message)
Logger
error
in interface Logger
message
- the messageLogger.error(java.lang.String)
public void error(java.lang.String message, java.lang.Throwable throwable)
Logger
error
in interface Logger
message
- the messagethrowable
- the throwableLogger.error(java.lang.String, java.lang.Throwable)
public boolean isErrorEnabled()
Logger
isErrorEnabled
in interface Logger
Logger.isErrorEnabled()
public void fatalError(java.lang.String message)
Logger
fatalError
in interface Logger
message
- the messageLogger.fatalError(java.lang.String)
public void fatalError(java.lang.String message, java.lang.Throwable throwable)
Logger
fatalError
in interface Logger
message
- the messagethrowable
- the throwableLogger.fatalError(java.lang.String, java.lang.Throwable)
public boolean isFatalErrorEnabled()
Logger
isFatalErrorEnabled
in interface Logger
Logger.isFatalErrorEnabled()
public Logger getChildLogger(java.lang.String name)
Logger
IllegalArgumentException
if name has an empty element name
getChildLogger
in interface Logger
name
- the subname of this logger
Logger.getChildLogger(java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |