|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.knowgate.debug.DebugFile
public final class DebugFile
Write execution traces to a flat text file
Traces are written to javatrc.txt file on the especified directory.
| Field Summary | |
|---|---|
static short |
DUMP_TO_FILE
|
static short |
DUMP_TO_STDOUT
|
static short |
dumpTo
|
static boolean |
trace
Activate/Deactive trace output |
| Constructor Summary | |
|---|---|
DebugFile()
|
|
| Method Summary | |
|---|---|
void |
debug(java.lang.String str)
This method is just an alias for DebugFile.writeln |
void |
debug(java.lang.String str,
java.lang.Exception xcpt)
|
static void |
decIdent()
Decrement identation level |
static void |
envinfo()
|
static java.lang.String |
getFile()
Get debug file path |
static void |
incIdent()
Increment identation level Maximum identation level is 80, after reaching that limit identation is automatically set to zero |
static void |
main(java.lang.String[] argv)
|
static void |
setFile(java.lang.String sDebugFilePath)
Set debug file path |
static void |
write(char[] str)
Write trace Traces are written to /tmp/javatrc.txt on UNIX systems or C:\WINNT\javatrc.txt on Windows |
static void |
write(java.lang.String str)
Write trace Traces are written to /tmp/javatrc.txt on UNIX systems or C:\WINNT\javatrc.txt on Windows |
static void |
writeln(char[] str)
Write trace and append line feed |
static void |
writeln(java.lang.String str)
Write trace and append line feed |
static void |
writeStackTrace(java.lang.Throwable t)
Write stack trace for an exception to debug file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final short DUMP_TO_FILE
public static final short DUMP_TO_STDOUT
public static short dumpTo
public static final boolean trace
| Constructor Detail |
|---|
public DebugFile()
| Method Detail |
|---|
public static void setFile(java.lang.String sDebugFilePath)
sDebugFilePath - Full path to file where debug traces will be written including directory and file namepublic static java.lang.String getFile()
public static void incIdent()
public static void decIdent()
public static void write(char[] str)
Write trace
Traces are written to /tmp/javatrc.txt on UNIX systems or C:\WINNT\javatrc.txt on Windows
public static void write(java.lang.String str)
Write trace
Traces are written to /tmp/javatrc.txt on UNIX systems or C:\WINNT\javatrc.txt on Windows
public static void writeln(java.lang.String str)
str - public static void writeln(char[] str)
str - public static void writeStackTrace(java.lang.Throwable t)
t - Throwablepublic void debug(java.lang.String str)
str -
public void debug(java.lang.String str,
java.lang.Exception xcpt)
public static void envinfo()
throws java.security.AccessControlException
java.security.AccessControlExceptionpublic static void main(java.lang.String[] argv)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||