org.jpedal.utils
Class LogWriter

java.lang.Object
  extended by org.jpedal.utils.LogWriter

public class LogWriter
extends java.lang.Object

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

debug

public static boolean debug
amount of debugging detail we put in log


log_name

public static java.lang.String log_name
filename of logfile


testing

public static boolean testing
flag we can set to signal code being tested

Constructor Detail

LogWriter

public LogWriter()
Method Detail

resetLogFile

public static final void resetLogFile()
reset logfile


writeLog

public static final void writeLog(java.lang.String message)

debugFile

public static final void debugFile(java.lang.String message)

testLogFileWriteable

public static final boolean testLogFileWriteable()
test if file writable and can be written NOT used by jpedal


setupLogFile

public static final 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


writeLogWithoutCR

public static final void writeLogWithoutCR(java.lang.String message)
version to writeout without adding a new line


noLogging

public static final void noLogging()
stop all logging


writeMethod

public static final void writeMethod(java.lang.String message)
write out log method


writeMethod

public static final void writeMethod(java.lang.String message,
                                     int level)
write out log method


write

public static final void write(java.util.Map m,
                               int level)
write out log method


writeFormLog

public 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