public class Log
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static boolean |
DEBUG |
private static java.lang.String[] |
INDENT
Constant used to indent output.
|
private boolean |
itsDebug |
private static Log |
LOGGER |
Constructor and Description |
---|
Log() |
Modifier and Type | Method and Description |
---|---|
void |
debug(int indent,
java.lang.String msg)
Helper function to dump some info messages to the console.
|
void |
debug(java.lang.String msg)
Helper function to dump some info messages to the console
|
boolean |
debugOn()
Is debug logging turned on
|
static Log |
getInstance()
Retrive the singleton logger
|
void |
info(int indent,
java.lang.String msg)
Helper function to dump some info messages to the console.
|
void |
info(java.lang.String msg)
Helper function to dump some info messages to the console.
|
void |
setDebug(boolean val)
Turn on/off debug logging
|
protected void |
writeLog(java.lang.String msg)
Write the message to the log
|
protected static final boolean DEBUG
private static final java.lang.String[] INDENT
private static final Log LOGGER
private boolean itsDebug
public static Log getInstance()
public boolean debugOn()
public void setDebug(boolean val)
public void debug(java.lang.String msg)
public void debug(int indent, java.lang.String msg)
msg
- The message to display.
public void info(java.lang.String msg)
msg
- The message to display.
public void info(int indent, java.lang.String msg)
msg
- The message to display.
protected void writeLog(java.lang.String msg)