public class LDebug
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
timeElapsed
Turns on debug info regarding how much time has passed since the start of
the program.
|
static boolean |
timeStamp
Turns on debug info regarding how much time has passed since the last
debug output.
|
Constructor and Description |
---|
LDebug() |
LDebug(java.lang.String path,
int space)
Creates a debug log at the path desired, and with the given character
space for the header text.
|
Modifier and Type | Method and Description |
---|---|
void |
addBannedHeader(java.lang.String in) |
void |
addBannedHeader(java.lang.String[] input) |
void |
clearBannedHeaders() |
void |
closeDebugFile() |
void |
flushDebug() |
java.lang.String |
getOpenPath() |
int |
line() |
static boolean |
on() |
static void |
on(java.lang.Boolean b) |
void |
openDebug(java.lang.String path,
int space) |
void |
setSpacing(int spacing)
Sets the spacing between the left side of the debug log and the contents.
|
void |
w(java.lang.String header,
java.lang.String... input)
Writes to the debug log.
|
static void |
wrapUp()
Closes debug logs and flushes their buffers.
|
static void |
wrapUpAndExit()
Calls wrapUp() then exits the program.
|
void |
writeException(char in) |
void |
writeException(java.lang.String in) |
public static boolean timeStamp
public static boolean timeElapsed
public LDebug(java.lang.String path, int space)
path
- space
- public LDebug()
public static void on(java.lang.Boolean b)
b
- public static boolean on()
public final void openDebug(java.lang.String path, int space)
path
- space
- public void setSpacing(int spacing)
spacing
- public void w(java.lang.String header, java.lang.String... input)
header
- input
- public void writeException(java.lang.String in)
in
- public void writeException(char in) throws java.io.IOException
in
- java.io.IOException
public void flushDebug()
public void closeDebugFile()
public void clearBannedHeaders()
public void addBannedHeader(java.lang.String in)
in
- public void addBannedHeader(java.lang.String[] input)
input
- public static void wrapUp()
public static void wrapUpAndExit()
public java.lang.String getOpenPath()
public int line()