|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sigpath.model.XDebug
public class XDebug
Encapsulates Real-time debugging information. XDebug provides a simple facility for logging debug messages, and recording debug parameters. Results of XDebug are conditionally displayed at the bottom of the JSP page.
XDebugMessage,
XDebugParameter,
Serialized Form| Constructor Summary | |
|---|---|
XDebug()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addParameter(int type,
String name,
boolean value)
Adds a new boolean Parameter. |
void |
addParameter(int type,
String name,
int value)
Adds a new integer Parameter. |
void |
addParameter(int type,
String name,
String value)
Adds a new String Parameter. |
Vector |
getDebugMessages()
Gets all Debug Messages. |
Vector |
getParameters()
Gets all Parameters. |
long |
getTimeElapsed()
Gets the total time elapsed (in milliseconds.) |
void |
logMsg(Object caller,
String msg)
Logs a new message. |
void |
logMsg(Object caller,
String msg,
String color)
Logs a new message with the specified color code. |
void |
logMsg(Object caller,
String msg,
String color,
Throwable throwable)
Logs a new message with the specified color code and throwable object. |
void |
logMsg(Object caller,
String msg,
Throwable throwable)
Logs a new message with the specified color code. |
void |
startTimer()
Starts the internal timer |
void |
stopTimer()
Stops the internal timer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XDebug()
| Method Detail |
|---|
public void logMsg(Object caller,
String msg,
String color,
Throwable throwable)
caller - object that is making the log requestmsg - message to logcolor - color of message, e.g. "RED, "GREEN"throwable - throwable object
public void logMsg(Object caller,
String msg,
Throwable throwable)
caller - object that is making the log requestmsg - message to logthrowable - throwable object
public void logMsg(Object caller,
String msg,
String color)
caller - object that is making the log requestmsg - message to logcolor - color of message, e.g. "RED, "GREEN"
public void logMsg(Object caller,
String msg)
caller - object that is making the log requestmsg - message to log
public void addParameter(int type,
String name,
String value)
type - parameter type code, e.g. COOKIE_TYPE, ENVIRONMENT_TYPEname - parameter namevalue - parameter String value
public void addParameter(int type,
String name,
int value)
type - parameter type code, e.g. COOKIE_TYPE, ENVIRONMENT_TYPEname - parameter namevalue - parameter integer value
public void addParameter(int type,
String name,
boolean value)
type - parameter type code, e.g. COOKIE_TYPE, ENVIRONMENT_TYPEname - parameter namevalue - parameter boolean valuepublic Vector getDebugMessages()
public Vector getParameters()
public void startTimer()
public void stopTimer()
public long getTimeElapsed()
|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||