snmp.lib.util
Class Debug
java.lang.Object
|
+--snmp.lib.util.Debug
- public class Debug
- extends java.lang.Object
The Debug class provides the dump method that appends the
stack trace information to the debugging message.
Warning: it's expensive to create the stack trace in the Exception object,
it should not be used in the production code.
- Version:
- $Revision: 0.1 $ $Date: 2004/03/09 06:03:48 $
- Author:
- Scott Cheng
Field Summary |
private static boolean |
DEBUG
|
private static java.lang.String |
EMPTY_STRING
|
Constructor Summary |
Debug()
|
Method Summary |
static void |
dump(java.lang.Object o)
Dumps the the string presentation of the object. |
static void |
dump(java.lang.String msg)
Use Log.getInstance.debug("...") to dump the debug message
instead of this method..., but again it's also expensive. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_STRING
private static final java.lang.String EMPTY_STRING
- See Also:
- Constant Field Values
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
Debug
public Debug()
dump
public static void dump(java.lang.String msg)
- Use Log.getInstance.debug("...") to dump the debug message
instead of this method..., but again it's also expensive.
- Parameters:
msg
- The debug message.
dump
public static void dump(java.lang.Object o)
- Dumps the the string presentation of the object.