public final class DebugFile
extends java.lang.Object
Write execution traces to a flat text file
Traces are written to javatrc.txt file on the especified directory.Modifier and Type | Field and Description |
---|---|
static short |
DUMP_TO_FILE |
static short |
DUMP_TO_STDOUT |
static short |
dumpTo |
static boolean |
trace
Activate/Deactive trace output
|
Constructor and Description |
---|
DebugFile() |
Modifier and Type | Method and Description |
---|---|
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
|
public static final short DUMP_TO_FILE
public static final short DUMP_TO_STDOUT
public static short dumpTo
public static final boolean trace
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 Windowspublic 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 Windowspublic 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.AccessControlException
public static void main(java.lang.String[] argv)