org.oXML.util
Class Log

java.lang.Object
  extended byorg.oXML.util.Log

public class Log
extends java.lang.Object


Field Summary
static int DEBUG_LEVEL
           
static int ERROR_LEVEL
           
static int INFO_LEVEL
           
static int NONE_LEVEL
           
static int WARNING_LEVEL
           
 
Constructor Summary
Log()
           
 
Method Summary
static void error(java.lang.String msg)
           
static void exception(java.lang.Throwable exc)
           
static void exception(java.lang.Throwable exc, java.lang.String msg)
           
static int getLevel()
           
static void info(java.lang.String msg)
           
 void log(int type, java.lang.String msg)
           
static void setLevel(int level)
           
static void setOutput(java.io.OutputStream out)
           
static void setOutput(java.io.PrintStream out)
           
static boolean timestamp()
          check whether the log output should include the date and time
static void timestamp(boolean timestamp)
          control whether the log output should include the date and time
static void trace(java.lang.String msg)
           
static void warning(java.lang.String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG_LEVEL

public static final int DEBUG_LEVEL
See Also:
Constant Field Values

INFO_LEVEL

public static final int INFO_LEVEL
See Also:
Constant Field Values

WARNING_LEVEL

public static final int WARNING_LEVEL
See Also:
Constant Field Values

ERROR_LEVEL

public static final int ERROR_LEVEL
See Also:
Constant Field Values

NONE_LEVEL

public static final int NONE_LEVEL
See Also:
Constant Field Values
Constructor Detail

Log

public Log()
Method Detail

setOutput

public static void setOutput(java.io.OutputStream out)

setOutput

public static void setOutput(java.io.PrintStream out)

setLevel

public static void setLevel(int level)

getLevel

public static int getLevel()

timestamp

public static void timestamp(boolean timestamp)
control whether the log output should include the date and time


timestamp

public static boolean timestamp()
check whether the log output should include the date and time


trace

public static void trace(java.lang.String msg)

info

public static void info(java.lang.String msg)

warning

public static void warning(java.lang.String msg)

error

public static void error(java.lang.String msg)

exception

public static void exception(java.lang.Throwable exc)

exception

public static void exception(java.lang.Throwable exc,
                             java.lang.String msg)

log

public void log(int type,
                java.lang.String msg)