public class Debug
extends java.lang.Object
Assert
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG
Controls debug mode for JSS.
|
static int |
ERROR |
static int |
OBNOXIOUS |
static int |
QUIET |
static int |
VERBOSE |
Constructor and Description |
---|
Debug() |
Modifier and Type | Method and Description |
---|---|
static int |
getLevel()
Get debugging level of the application.
|
static java.lang.String |
getLevelStr() |
static void |
setLevel(int level)
Set the debugging level of the application.
|
static void |
trace(int level,
java.lang.String str)
Print a trace statement to standard output.
|
static void |
trace(java.lang.String str)
Print a trace statement to standard output.
|
public static final boolean DEBUG
Assert
,
Constant Field Valuespublic static final int OBNOXIOUS
public static final int VERBOSE
public static final int ERROR
public static final int QUIET
public static void trace(int level, java.lang.String str)
level
- The detail level of the statement.
The level must be greater than 0.str
- The trace statement.public static void trace(java.lang.String str)
str
- The trace statement.public static void setLevel(int level)
public static int getLevel()
public static java.lang.String getLevelStr()