|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.Debug
Poor man's trace.
Some parts of Lighthouse must execute before
WSTrace
is available.
WSTrace
also introduces (by reference)
dependencies on very nearly the entire system,
which can create a circular reference problem at build time.
Enabling Debug prints messages to System.out
.
Use this to debug such portions of Lighthouse. For example,
 .
lh -DDebug.enable=true -DDebug.DirectoryDataStore=3
-DDebug.DirectoryDataStore\$Item=4
com.waveset.repository.test.DirectoryDataStoreTests
2>&1 | tee temp; vi temp
Field Summary | |
static int |
ALWAYS
Deprecated. |
static java.lang.String |
code_id
Deprecated. |
static java.lang.String |
ENABLE_PROPERTY
Deprecated. The name of the System property that controls whether Debug is enabled. |
static int |
LEVEL1
Deprecated. |
static int |
LEVEL2
Deprecated. |
static int |
LEVEL3
Deprecated. |
static int |
LEVEL4
Deprecated. |
static java.lang.String |
SYMBOL
Deprecated. The name of a System property that sets the debug level for the global scope. |
Constructor Summary | |
Debug()
Deprecated. |
Method Summary | |
static void |
entry(int level,
java.lang.Class c,
java.lang.String method)
Deprecated. Traces method entry if the debug level in effect for the specified class meets or exceeds the specified level. |
static void |
entry(int level,
java.lang.Class c,
java.lang.String method,
java.lang.Object o)
Deprecated. Traces method entry if the debug level in effect for the specified class meets or exceeds the specified level. |
static void |
entry(int level,
java.lang.String c,
java.lang.String method)
Deprecated. |
static void |
entry(int level,
java.lang.String c,
java.lang.String method,
java.lang.Object o)
Deprecated. |
static void |
exception(int level,
java.lang.Class c,
java.lang.String method,
java.lang.Throwable t)
Deprecated. Traces exceptional exit if the debug level in effect for the specified class meets or exceeds the specified level. |
static void |
exception(int level,
java.lang.String c,
java.lang.String method,
java.lang.Throwable t)
Deprecated. |
static void |
exit(int level,
java.lang.Class c,
java.lang.String method)
Deprecated. Traces method exit if the debug level in effect for the specified class meets or exceeds the specified level. |
static void |
exit(int level,
java.lang.Class c,
java.lang.String method,
boolean b)
Deprecated. Traces method exit if the debug level in effect for the specified class meets or exceeds the specified level. |
static void |
exit(int level,
java.lang.Class c,
java.lang.String method,
int i)
Deprecated. Traces method exit if the debug level in effect for the specified class meets or exceeds the specified level. |
static void |
exit(int level,
java.lang.Class c,
java.lang.String method,
long l)
Deprecated. Traces method exit if the debug level in effect for the specified class meets or exceeds the specified level. |
static void |
exit(int level,
java.lang.Class c,
java.lang.String method,
java.lang.Object o)
Deprecated. Traces method exit if the debug level in effect for the specified class meets or exceeds the specified level. |
static void |
exit(int level,
java.lang.String c,
java.lang.String method)
Deprecated. |
static void |
exit(int level,
java.lang.String c,
java.lang.String method,
boolean b)
Deprecated. |
static void |
exit(int level,
java.lang.String c,
java.lang.String method,
int i)
Deprecated. |
static void |
exit(int level,
java.lang.String c,
java.lang.String method,
long l)
Deprecated. |
static void |
exit(int level,
java.lang.String c,
java.lang.String method,
java.lang.Object o)
Deprecated. |
static int |
getLevel()
Deprecated. |
static int |
getLevel(java.lang.Class c)
Deprecated. |
static int |
getLevel(java.lang.String className)
Deprecated. |
static void |
info(int level,
java.lang.Class c,
java.lang.String method,
java.lang.Object o)
Deprecated. Traces method information if the debug level in effect for the specified class meets or exceeds the specified level. |
static void |
info(int level,
java.lang.String c,
java.lang.String method,
java.lang.Object o)
Deprecated. |
static boolean |
isEnabled()
Deprecated. |
static boolean |
level1()
Deprecated. |
static boolean |
level1(java.lang.Class c)
Deprecated. |
static boolean |
level1(java.lang.Class c,
java.lang.String method)
Deprecated. |
static boolean |
level1(java.lang.String c,
java.lang.String method)
Deprecated. |
static boolean |
level2()
Deprecated. |
static boolean |
level2(java.lang.Class c)
Deprecated. |
static boolean |
level2(java.lang.Class c,
java.lang.String method)
Deprecated. |
static boolean |
level2(java.lang.String c,
java.lang.String method)
Deprecated. |
static boolean |
level3()
Deprecated. |
static boolean |
level3(java.lang.Class c)
Deprecated. |
static boolean |
level3(java.lang.Class c,
java.lang.String method)
Deprecated. |
static boolean |
level3(java.lang.String c,
java.lang.String method)
Deprecated. |
static boolean |
level4()
Deprecated. |
static boolean |
level4(java.lang.Class c)
Deprecated. |
static boolean |
level4(java.lang.Class c,
java.lang.String method)
Deprecated. |
static boolean |
level4(java.lang.String c,
java.lang.String method)
Deprecated. |
static void |
main(java.lang.String[] args)
Deprecated. |
static void |
trace(java.lang.Class c,
java.lang.Object o)
Deprecated. Prints the specified object to STDOUT if debug is in effect for the specified class. |
static void |
trace(int level,
java.lang.Class c,
java.lang.Object o)
Deprecated. Prints the specified object to STDOUT if the debug level in effect for the specified class meets or exceeds the specified level. |
static void |
trace(java.lang.Object o)
Deprecated. Prints the specified object to STDOUT if debug is "on" globally. |
static void |
variable(int level,
java.lang.String c,
java.lang.String method,
java.lang.String label,
boolean b)
Deprecated. Traces method information prepending the specified @param label if the debug level in effect for the specified class meets or exceeds the specified level. |
static void |
variable(int level,
java.lang.String c,
java.lang.String method,
java.lang.String label,
int i)
Deprecated. Traces method information prepending the specified @param label if the debug level in effect for the specified class meets or exceeds the specified level. |
static void |
variable(int level,
java.lang.String c,
java.lang.String method,
java.lang.String label,
long l)
Deprecated. Traces method information prepending the specified @param label if the debug level in effect for the specified class meets or exceeds the specified level. |
static void |
variable(int level,
java.lang.String c,
java.lang.String method,
java.lang.String label,
java.lang.Object o)
Deprecated. Traces method information prepending the specified @param label if the debug level in effect for the specified class meets or exceeds the specified level. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static int ALWAYS
public static int LEVEL1
public static int LEVEL2
public static int LEVEL3
public static int LEVEL4
public static final java.lang.String SYMBOL
For example:
&nsbp  Debug=2
This name also serves as the base (or "stem") for any System property that sets a debug level for a specific class. Construct such a property by appending "." and the basename (i.e., unqualified name) of a Java class to the debug symbol.
Programmatically, this would be:
   Class c = com.waveset.util.Util.class;
   String classSymbolName =
     Debug.SYMBOL + "." + Util.getBaseName(c);
   System.setProperty(classSymbolName, "4");
For example:
&nsbp  Debug=2
&nsbp  Debug.CryptoUtil=0
&nsbp  Debug.JCECipher=0
&nsbp  Debug.WavesetProperties=3
public static final java.lang.String ENABLE_PROPERTY
Its value is expected to be a string-formatted boolean.
For example:
&nsbp  Debug.enable=true
Constructor Detail |
public Debug()
Method Detail |
public static void trace(java.lang.Object o)
public static void trace(java.lang.Class c, java.lang.Object o)
Debug is in effect if one of the following is true:
public static void trace(int level, java.lang.Class c, java.lang.Object o)
The debug level in effect for the specified class is either:
public static void entry(int level, java.lang.Class c, java.lang.String method)
trace(int, Class, Object)
public static void entry(int level, java.lang.String c, java.lang.String method)
public static void entry(int level, java.lang.Class c, java.lang.String method, java.lang.Object o)
trace(int, Class, Object)
public static void entry(int level, java.lang.String c, java.lang.String method, java.lang.Object o)
public static void exit(int level, java.lang.Class c, java.lang.String method)
trace(int, Class, Object)
public static void exit(int level, java.lang.String c, java.lang.String method)
public static void exit(int level, java.lang.Class c, java.lang.String method, java.lang.Object o)
trace(int, Class, Object)
public static void exit(int level, java.lang.String c, java.lang.String method, java.lang.Object o)
public static void exit(int level, java.lang.Class c, java.lang.String method, int i)
trace(int, Class, Object)
public static void exit(int level, java.lang.String c, java.lang.String method, int i)
public static void exit(int level, java.lang.Class c, java.lang.String method, long l)
trace(int, Class, Object)
public static void exit(int level, java.lang.String c, java.lang.String method, long l)
public static void exit(int level, java.lang.Class c, java.lang.String method, boolean b)
trace(int, Class, Object)
public static void exit(int level, java.lang.String c, java.lang.String method, boolean b)
public static void info(int level, java.lang.Class c, java.lang.String method, java.lang.Object o)
trace(int, Class, Object)
public static void info(int level, java.lang.String c, java.lang.String method, java.lang.Object o)
public static void variable(int level, java.lang.String c, java.lang.String method, java.lang.String label, java.lang.Object o)
public static void variable(int level, java.lang.String c, java.lang.String method, java.lang.String label, int i)
public static void variable(int level, java.lang.String c, java.lang.String method, java.lang.String label, long l)
public static void variable(int level, java.lang.String c, java.lang.String method, java.lang.String label, boolean b)
public static void exception(int level, java.lang.Class c, java.lang.String method, java.lang.Throwable t)
trace(int, Class, Object)
public static void exception(int level, java.lang.String c, java.lang.String method, java.lang.Throwable t)
public static boolean level1()
true
if the global debug level is at least 1;
otherwise false
.public static boolean level2()
true
if the global debug level is at least 2;
otherwise false
.public static boolean level3()
true
if the global debug level is at least 3;
otherwise false
.public static boolean level4()
true
if the global debug level is at least 4;
otherwise false
.public static boolean level1(java.lang.Class c)
true
if a debug level of at least 1
is in effect for the specified class.public static boolean level2(java.lang.Class c)
true
if a debug level of at least 2
is in effect for the specified class.public static boolean level3(java.lang.Class c)
true
if a debug level of at least 3
is in effect for the specified class.public static boolean level4(java.lang.Class c)
true
if a debug level of at least 4
is in effect for the specified class.public static boolean level1(java.lang.Class c, java.lang.String method)
true
if a debug level of at least 1
is in effect for the specified class and method.public static boolean level1(java.lang.String c, java.lang.String method)
public static boolean level2(java.lang.Class c, java.lang.String method)
true
if a debug level of at least 2
is in effect for the specified class and method.public static boolean level2(java.lang.String c, java.lang.String method)
public static boolean level3(java.lang.Class c, java.lang.String method)
true
if a debug level of at least 3
is in effect for the specified class and method.public static boolean level3(java.lang.String c, java.lang.String method)
public static boolean level4(java.lang.Class c, java.lang.String method)
true
if a debug level of at least 4
is in effect for the specified class and method.public static boolean level4(java.lang.String c, java.lang.String method)
public static int getLevel()
public static int getLevel(java.lang.Class c)
class
is null,
returns the debug level currently in effect globally.public static int getLevel(java.lang.String className)
public static boolean isEnabled()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |