|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.services.logging.JetspeedLogger
The implementation of loggers for Jetspeed. This class acts as a wrapper so that the underlying logging implementation is hidden fromthe rest of Jetspeed The current implementation uses Log4J.
Constructor Summary | |
JetspeedLogger(org.apache.log4j.Logger logger)
Constructor. |
Method Summary | |
void |
debug(java.lang.Object obj)
Logs the given object if debug is enabled |
void |
debug(java.lang.Object obj,
java.lang.Throwable throwable)
Logs the given object and throwable if debug is enabled |
void |
error(java.lang.Object obj)
Logs the given object if error is enabled |
void |
error(java.lang.Object obj,
java.lang.Throwable throwable)
Logs the given object and throwable if error is enabled |
void |
fatal(java.lang.Object obj)
Logs the given object if fatal is enabled |
void |
fatal(java.lang.Object obj,
java.lang.Throwable throwable)
Logs the given object and throwable if fatal is enabled |
void |
info(java.lang.Object obj)
Logs the given object if info is enabled |
void |
info(java.lang.Object obj,
java.lang.Throwable throwable)
Logs the given object and throwable if info is enabled |
boolean |
isDebugEnabled()
Checks if the current logger is enabled for debug logging. |
boolean |
isErrorEnabled()
Checks if the current logger is enabled for error logging. |
boolean |
isFatalEnabled()
Checks if the current logger is enabled for fatal logging. |
boolean |
isInfoEnabled()
Checks if the current logger is enabled for info logging. |
boolean |
isTraceEnabled()
Checks if the current logger is enabled for trace logging. |
boolean |
isWarnEnabled()
Checks if the current logger is enabled for warning logging. |
void |
trace(java.lang.Object obj)
Logs the given object if trace is enabled With Log4J, this is the same as debug |
void |
trace(java.lang.Object obj,
java.lang.Throwable throwable)
Logs the given object and throwable if trace is enabled With Log4J, this is the same as debug |
void |
warn(java.lang.Object obj)
Logs the given object if warning is enabled |
void |
warn(java.lang.Object obj,
java.lang.Throwable throwable)
Logs the given object and throwable if warning is enabled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JetspeedLogger(org.apache.log4j.Logger logger)
logger
- The logger to wrapMethod Detail |
public boolean isDebugEnabled()
public boolean isErrorEnabled()
public boolean isFatalEnabled()
public boolean isInfoEnabled()
public boolean isTraceEnabled()
public boolean isWarnEnabled()
public void debug(java.lang.Object obj)
obj
- Object to logpublic void debug(java.lang.Object obj, java.lang.Throwable throwable)
obj
- Object to logthrowable
- The underlying implementation may log stack trace for thispublic void error(java.lang.Object obj)
obj
- Object to logpublic void error(java.lang.Object obj, java.lang.Throwable throwable)
obj
- Object to logthrowable
- The underlying implementation may log stack trace for thispublic void fatal(java.lang.Object obj)
obj
- Object to logpublic void fatal(java.lang.Object obj, java.lang.Throwable throwable)
obj
- Object to logthrowable
- The underlying implementation may log stack trace for thispublic void info(java.lang.Object obj)
obj
- Object to logpublic void info(java.lang.Object obj, java.lang.Throwable throwable)
obj
- Object to logthrowable
- The underlying implementation may log stack trace for thispublic void trace(java.lang.Object obj)
obj
- Object to logpublic void trace(java.lang.Object obj, java.lang.Throwable throwable)
obj
- Object to logthrowable
- The underlying implementation may log stack trace for thispublic void warn(java.lang.Object obj)
obj
- Object to logpublic void warn(java.lang.Object obj, java.lang.Throwable throwable)
obj
- Object to logthrowable
- The underlying implementation may log stack trace for this
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |