| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.wps.portlets.struts.logging.WpsStrutsTraceLogger
public class WpsStrutsTraceLogger
This class provides logging ability using six different logging levels.
The six logging levels used are (in order):
Field Summary | |
---|---|
static int | DEBUG
"Debug" level logging. |
static int | ERROR
"Error" level logging. |
static int | FATAL
"Fatal" level logging. |
static int | INFO
"Info" level logging. |
static int | TRACE
"Trace" level logging. |
static int | WARN
"Warn" level logging. |
Constructor Summary | |
---|---|
WpsStrutsTraceLogger(java.lang.Class aClass)
Constructor. | |
WpsStrutsTraceLogger(java.lang.String classname)
Constructor. |
Method Summary | |
---|---|
void | entry(int logLevel,
java.lang.String loggingMethod)
Logs an entry message at the specified log level indicating that the method has been entered. |
void | exit(int logLevel,
java.lang.String loggingMethod)
Logs an exit message at the specified log level indicating that the method is exiting. |
boolean | isLogging(int logLevel)
Return true if logging is enabled for a particular log level. |
void | stackTrace(int logLevel,
java.lang.String loggingMethod,
java.lang.String text)
Stack Trace |
void | text(int logLevel,
java.lang.String loggingMethod,
java.lang.String text)
Logs a message at the specified log level. |
void | text(int logLevel,
java.lang.String loggingMethod,
java.lang.String text,
java.lang.Throwable t)
Logs a message at the specified log level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int TRACE
public static int DEBUG
public static int INFO
public static int WARN
public static int ERROR
public static int FATAL
Constructor Detail |
---|
public WpsStrutsTraceLogger(java.lang.Class aClass)
public WpsStrutsTraceLogger(java.lang.String classname)
Method Detail |
---|
public boolean isLogging(int logLevel)
public void text(int logLevel, java.lang.String loggingMethod, java.lang.String text)
public void text(int logLevel, java.lang.String loggingMethod, java.lang.String text, java.lang.Throwable t)
public void entry(int logLevel, java.lang.String loggingMethod)
public void exit(int logLevel, java.lang.String loggingMethod)
public void stackTrace(int logLevel, java.lang.String loggingMethod, java.lang.String text)
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |