ostore.util
Class Debug
java.lang.Object
|
+--ostore.util.Debug
- public class Debug
- extends Object
Debug provides printing facilities for debug purposes.
- Version:
- $Id: Debug.java,v 1.10 2002/08/07 04:20:53 srhea Exp $
- Author:
- Sean C. Rhea
Constructor Summary |
Debug()
|
Method Summary |
static void |
print(String msg)
|
static void |
print(String tag,
char msg)
|
static void |
print(String tag,
String msg)
If debugging has been turned on for tag , print
msg . |
static void |
println(String msg)
If debugging has been turned on for tag , print
msg , followed by a new line. |
static void |
println(String tag,
String msg)
|
static void |
printtag(String tag,
String msg)
If debugging has been turned on for tag , print
tag +msg . |
static void |
printtagln(String tag,
String msg)
If debugging has been turned on for tag , print
tag +msg , followed by a new line. |
static String |
tag_class(String fullname)
|
static void |
turnOff(String tag)
Turn off debugging for tag . |
static void |
turnOn(String tag)
Turn on debugging for tag . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Debug
public Debug()
tag_class
public static final String tag_class(String fullname)
println
public static final void println(String msg)
- If debugging has been turned on for
tag
, print
msg
, followed by a new line. The tag should
contain the name of the file this function is called from.
println
public static final void println(String tag,
String msg)
printtagln
public static final void printtagln(String tag,
String msg)
- If debugging has been turned on for
tag
, print
tag
+msg
, followed by a new line. The tag
should contain the name of the file this function is called from.
print
public static final void print(String tag,
String msg)
- If debugging has been turned on for
tag
, print
msg
. The tag should contain the name of the file
this function is called from.
print
public static final void print(String msg)
print
public static final void print(String tag,
char msg)
printtag
public static final void printtag(String tag,
String msg)
- If debugging has been turned on for
tag
, print
tag
+msg
. The tag should contain
the name of the file this function is called from.
turnOn
public static final void turnOn(String tag)
- Turn on debugging for
tag
.
turnOff
public static final void turnOff(String tag)
- Turn off debugging for
tag
.