|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | POINTCUT | FIELD | CONSTRUCTOR | METHOD | DETAIL: FIELD | POINTCUT | CONSTRUCTOR | METHOD |
java.lang.Object | +--org.apache.cactus.util.log.BaseLog
Wrapper around the Log4j Category
class. A category is
usually the full name of the class in which to log (including the package
name).
The order of priority is as follows : ERROR > WARNING > DEBUG > INFO
Constructor Summary | |
BaseLog(String theCategoryName)
|
Method Summary | |
void |
debug(String theMessage)
Log a DEBUG level message. |
void |
debug(String theMessage,
Throwable theThrowable)
Log a DEBUG level message along with an exception |
void |
entry(String theMessage)
Used to log a message when entering a method. |
void |
error(String theMessage)
Log an ERROR level message. |
void |
error(String theMessage,
Throwable theThrowable)
Log an ERROR level message along with an exception |
void |
error(Throwable theThrowable)
Log an ERROR level exception only |
void |
exit(String theMessage)
Used to log a message when exiting a method. |
void |
info(String theMessage)
Log an INFO level message. |
void |
info(String theMessage,
Throwable theThrowable)
Log an INFO level message along with an exception |
boolean |
isDebugEnabled()
|
void |
warn(String theMessage)
Log a WARNING level message. |
void |
warn(String theMessage,
Throwable theThrowable)
Log a WARNING level message along with an exception |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BaseLog(String theCategoryName)
theCategoryName
- the category's name. Usually, it is the full
name of the class being logged, including the package name
Method Detail |
public void debug(String theMessage)
debug
in interface Log
theMessage
- the message to log
public void debug(String theMessage, Throwable theThrowable)
debug
in interface Log
theMessage
- the message to log
theThrowable
- the exception to log
public void entry(String theMessage)
entry
in interface Log
theMessage
- the message to log
public void error(String theMessage)
error
in interface Log
theMessage
- the message to log
public void error(String theMessage, Throwable theThrowable)
error
in interface Log
theMessage
- the message to log
theThrowable
- the exception to log
public void error(Throwable theThrowable)
error
in interface Log
theThrowable
- the exception to log
public void exit(String theMessage)
exit
in interface Log
theMessage
- the message to log
public void info(String theMessage)
info
in interface Log
theMessage
- the message to log
public void info(String theMessage, Throwable theThrowable)
info
in interface Log
theMessage
- the message to log
theThrowable
- the exception to log
public boolean isDebugEnabled()
isDebugEnabled
in interface Log
public void warn(String theMessage)
warn
in interface Log
theMessage
- the message to log
public void warn(String theMessage, Throwable theThrowable)
warn
in interface Log
theMessage
- the message to log
theThrowable
- the exception to log
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTRUCTOR | METHOD | DETAIL: FIELD | CONSTRUCTOR | METHOD |