|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysql.jdbc.Debug
The Debug class allows debug messages on a per-class basis.
The user issues a trace() call, listing the classes they wish to debug.
Constructor Summary | |
Debug()
|
Method Summary | |
static void |
methodCall(java.lang.Object source,
java.lang.String method,
java.lang.Object[] args)
Trace a method call. |
static void |
msg(java.lang.Object source,
java.lang.String message)
Log a message. |
static void |
returnValue(java.lang.Object source,
java.lang.String method,
java.lang.Object value)
Trace a method call. |
static void |
trace(java.lang.String classList)
Set the classes to trace. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Debug()
Method Detail |
public static void methodCall(java.lang.Object source, java.lang.String method, java.lang.Object[] args)
If the user has registered in interest in the Class of Source, then the Source class can trace method calls through this method.
source
- the Object issuing the methodCall() methodmethod
- the name of the Methodargs
- a list of argumentspublic static void msg(java.lang.Object source, java.lang.String message)
If the user has registered in interest in the Class of Source, then the Source class can trace return calls through this method.
source
- the Object issuing the msg() methodmessage
- the name of the methodpublic static void returnValue(java.lang.Object source, java.lang.String method, java.lang.Object value)
If the user has registered in interest in the Class of Source, then the Source class can trace return calls through this method.
source
- the Object issuing the returnValue() methodmethod
- the name of the methodvalue
- the return valuepublic static void trace(java.lang.String classList)
classList
- the list of classes to trace, separated by colons or
the keyword "ALL" to trace all classes that use the
Debug class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |