|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object util.Debug
Debug management class.
You can use calls to Debug.print
for any debug message you want to print
in your program.
Constructor Summary | |
Debug()
|
Method Summary | |
static void |
print(String s,
int nLevel)
Print a message to STDERR. |
static int |
setMaxDebugLevel(int nLevel)
Set the maximum debug level. |
static void |
traceSystemMessages()
Switch on printing of framework internal debug messages. |
static void |
traceSystemMessages(boolean fSwitch)
Switch printing of framework internal debug messages. |
static void |
untraceSystemMessages()
Switch off printing of framework internal debug messages. |
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 int setMaxDebugLevel(int nLevel)
When printing messages with print(java.lang.String, int)
, only messages with a debug level less or
equal the maximum debug level will be printed.
nLevel
- the maximum debug level. Defaults to 10.
public static void traceSystemMessages()
public static void untraceSystemMessages()
public static void traceSystemMessages(boolean fSwitch)
fSwitch
- if true, framework internal debug messages will henceforward be printed.public static void print(String s, int nLevel)
Prints s
to System.err
, if nLevel
is less
or equal the maximum debug level.
s
- the debug message.nLevel
- the message's debug level. Must be greater or equal zero.
|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |