|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dexterind.gopigo.utils.Debug
public class Debug
If the debug mode is ON this class will write the given log into a log file. It's possible to define the log dir. and the log filename from the configuration file.
| Field Summary | |
|---|---|
static int |
CONFIG
The "config" log level. |
private java.lang.Boolean |
debug
The flag to set to enable or disable the debug. |
private java.util.logging.FileHandler |
fh
The log file handler. |
static int |
FINE
The "fine" log level. |
static int |
FINER
The "finer" log level. |
static int |
FINEST
The "finest" log level. |
static int |
INFO
The "info" log level. |
private java.lang.String |
logDir
The default directory where the log will be created. |
private java.lang.String |
logFile
The default filename for the log. |
private java.util.logging.Logger |
logger
The logger object. |
static int |
SEVERE
The "severe" log level. |
static int |
WARNING
The "warning" log level. |
| Constructor Summary | |
|---|---|
Debug(java.lang.String target)
|
|
| Method Summary | |
|---|---|
void |
log(int level,
java.lang.String message)
Writes the log message with the given level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.logging.Logger logger
private java.util.logging.FileHandler fh
public static final int FINEST
public static final int FINER
public static final int FINE
public static final int CONFIG
public static final int INFO
public static final int WARNING
public static final int SEVERE
private java.lang.Boolean debug
private java.lang.String logDir
private java.lang.String logFile
| Constructor Detail |
|---|
public Debug(java.lang.String target)
| Method Detail |
|---|
public void log(int level,
java.lang.String message)
level - The level of the log to use.message - The message of the log to write.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||