|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.perforce.api.Debug
Utility class used for debugging. The level of debugging determines the amount of debugging information that is generated. The process using this class for debugging should ensure that it sets the debugging level appropriately.
Field Summary | |
static int |
ERROR
Only error messages are displayed. |
static int |
LOG_NONE
|
static int |
LOG_ONLY
|
static int |
LOG_SPLIT
|
static int |
NONE
No debug messages are displayed. |
static int |
NOTICE
Error, warning, and notice messages are displayed. |
static int |
VERBOSE
Error, warning, notice, and verbose messages are displayed. |
static int |
WARNING
Error and warning messages are displayed. |
Constructor Summary | |
Debug()
|
Method Summary | |
static void |
error(String msg)
Displays an error message for debugging. |
static int |
getDebugLevel()
|
static EventLog |
getEventLog()
|
static String |
getLevelName(int level)
|
static int |
getLogLevel()
|
static boolean |
getShowThread()
|
static void |
notify(String msg)
Displays a notice message for debugging. |
static void |
notify(String msg,
String[] arry)
Displays a notice message for debugging. |
static void |
out(int level,
String msg)
|
static void |
out(int level,
String msg,
String[] arry)
|
static void |
out(int level,
Throwable t)
|
static void |
out(String format,
int level,
Throwable t)
|
static void |
setDebugLevel(int l)
Sets the debug level for the application. |
static void |
setEventLog(EventLog elog)
|
static void |
setLogLevel(int log_level)
|
static void |
setLogLevel(String level)
|
static void |
setProperties(Properties props)
|
static void |
setShowThread(boolean show)
|
static void |
verbose(String msg)
Displays a verbose message for debugging. |
static void |
verbose(String msg,
String[] arry)
Displays a verbose message for debugging. |
static void |
warn(String msg)
Displays a warning message for debugging. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ERROR
public static final int LOG_NONE
public static final int LOG_ONLY
public static final int LOG_SPLIT
public static final int NONE
public static final int NOTICE
public static final int VERBOSE
public static final int WARNING
Constructor Detail |
public Debug()
Method Detail |
public static void error(String msg)
msg
- The debugging error message.public static int getDebugLevel()
public static EventLog getEventLog()
public static String getLevelName(int level)
public static int getLogLevel()
public static boolean getShowThread()
public static void notify(String msg)
msg
- The debugging notice message.public static void notify(String msg, String[] arry)
msg
- The debugging notice message.arry
- Array containing useful debug information.public static void out(int level, String msg)
public static void out(int level, String msg, String[] arry)
public static void out(int level, Throwable t)
public static void out(String format, int level, Throwable t)
public static void setDebugLevel(int l)
l
- The level of debugging to use.NONE
,
ERROR
,
WARNING
,
NOTICE
,
VERBOSE
public static void setEventLog(EventLog elog)
public static void setLogLevel(int log_level)
public static void setLogLevel(String level)
public static void setProperties(Properties props)
public static void setShowThread(boolean show)
public static void verbose(String msg)
msg
- The debugging notice message.public static void verbose(String msg, String[] arry)
msg
- The debugging notice message.arry
- Array containing useful debug information.public static void warn(String msg)
msg
- The debugging warning message.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |