org.xwt.util
Class Log

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

public class Log
extends java.lang.Object

easy to use logger


Field Summary
static boolean firstMessage
          true iff nothing has yet been logged
static java.util.Date lastDate
           
static boolean logDates
           
static boolean on
           
static boolean verbose
           
 
Constructor Summary
Log()
           
 
Method Summary
static void log(java.lang.Object o, java.lang.Object message)
          message can be a String or a Throwable
static void logJS(java.lang.Object message)
           
static void logJS(java.lang.Object o, java.lang.Object message)
          log a message with the current JavaScript sourceName/line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

on

public static boolean on

verbose

public static boolean verbose

logDates

public static boolean logDates

lastDate

public static java.util.Date lastDate

firstMessage

public static boolean firstMessage
true iff nothing has yet been logged

Constructor Detail

Log

public Log()
Method Detail

logJS

public static void logJS(java.lang.Object o,
                         java.lang.Object message)
log a message with the current JavaScript sourceName/line


logJS

public static void logJS(java.lang.Object message)

log

public static void log(java.lang.Object o,
                       java.lang.Object message)
message can be a String or a Throwable