|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpedal.utils.LogWriter
public class LogWriter
logs all activity. And some low level variables/methods as it is visible to all classes.
Provided for debugging and NOT officially part of the API
Could be superceded by logger function in Java 1.4
| Field Summary | |
|---|---|
static boolean |
debug
amount of debugging detail we put in log |
static java.lang.String |
log_name
filename of logfile |
static boolean |
testing
flag we can set to signal code being tested |
| Constructor Summary | |
|---|---|
LogWriter()
|
|
| Method Summary | |
|---|---|
static void |
debugFile(java.lang.String message)
|
static void |
noLogging()
stop all logging |
static void |
resetLogFile()
reset logfile |
static void |
setupLogFile(boolean internal,
int current_debug_level,
java.lang.String version,
java.lang.String command_line_values,
boolean showMessages)
setup log file and check it is readable also sets command line options |
static boolean |
testLogFileWriteable()
test if file writable and can be written NOT used by jpedal |
static void |
write(java.util.Map m,
int level)
write out log method |
static void |
writeFormLog(java.lang.String message,
boolean print)
write out logging information for forms, print is a boolean flag, if true prints to the screen |
static void |
writeLog(java.lang.String message)
|
static void |
writeLogWithoutCR(java.lang.String message)
version to writeout without adding a new line |
static void |
writeMethod(java.lang.String message)
write out log method |
static void |
writeMethod(java.lang.String message,
int level)
write out log method |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean debug
public static java.lang.String log_name
public static boolean testing
| Constructor Detail |
|---|
public LogWriter()
| Method Detail |
|---|
public static final void resetLogFile()
public static final void writeLog(java.lang.String message)
public static final void debugFile(java.lang.String message)
public static final boolean testLogFileWriteable()
public static final void setupLogFile(boolean internal,
int current_debug_level,
java.lang.String version,
java.lang.String command_line_values,
boolean showMessages)
public static final void writeLogWithoutCR(java.lang.String message)
public static final void noLogging()
public static final void writeMethod(java.lang.String message)
public static final void writeMethod(java.lang.String message,
int level)
public static final void write(java.util.Map m,
int level)
public static void writeFormLog(java.lang.String message,
boolean print)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||