| |
|
| java.lang.Object com.knowgate.debug.DebugFile
DebugFile | final public class DebugFile (Code) | | Write execution traces to a flat text file
Traces are written to javatrc.txt file on the especified directory.
By default /tmp/ on Unix and C:\WINNT\TEMP or C:\WINDOWS\TEMP on Windows.
author: Sergio Montoro Ten version: 2.2 |
DUMP_TO_FILE | final public static short DUMP_TO_FILE(Code) | | |
DUMP_TO_STDOUT | final public static short DUMP_TO_STDOUT(Code) | | |
dumpTo | public static short dumpTo(Code) | | |
trace | final public static boolean trace(Code) | | Activate/Deactive trace output
|
debug | public void debug(String str)(Code) | | This method is just an alias for DebugFile.writeln
Parameters: str - |
decIdent | public static void decIdent()(Code) | | Decrement identation level
|
getFile | public static String getFile()(Code) | | Get debug file path
If setFile() has not been called this method returns C:\\javatrc.txton Windows environments or /tmp/javatrc.txt on UNIX environments since: v2.2 the behaviour of this method has changed and now reads Java since: environment variable hipergate.debugdir for getting the directory where since: javatrc.txt file is generated |
incIdent | public static void incIdent()(Code) | | Increment identation level
|
setFile | public static void setFile(String sDebugFilePath)(Code) | | Set debug file path
Parameters: sDebugFilePath - Full path to file where debug traces will be written including directory and file name |
write | public static void write(char[] str)(Code) | | Write trace
Traces are written to /tmp/javatrc.txt on UNIX systems or C:\WINNT\javatrc.txt on Windows
|
write | public static void write(String str)(Code) | | Write trace
Traces are written to /tmp/javatrc.txt on UNIX systems or C:\WINNT\javatrc.txt on Windows
|
writeStackTrace | public static void writeStackTrace(Throwable t)(Code) | | Write stack trace for an exception to debug file
Parameters: t - Throwable |
writeln | public static void writeln(String str)(Code) | | Write trace and append line feed
Parameters: str - |
writeln | public static void writeln(char[] str)(Code) | | Write trace and append line feed
Parameters: str - |
|
|
|