org.objectweb.jotm
Class TraceTimer

java.lang.Object
  extended byorg.objectweb.jotm.TraceTimer

public class TraceTimer
extends java.lang.Object

Traces for module timer

Author:
Sebastien Chassande-Barrioz sebastien.chassande@inrialpes.fr

Field Summary
static boolean isDebug
           
static boolean isVerbose
           
static java.io.PrintWriter logWriter
           
 
Constructor Summary
TraceTimer()
           
 
Method Summary
static void debug(java.lang.String msg)
          print the debug timer message if the logger is not null
static void error(java.lang.String msg)
          print the error message if the logger is not null
static void error(java.lang.String msg, java.lang.Throwable th)
          print the throwing message if the logger is not null
static void setDebug(boolean set)
          set the debug timer
static void setLogWriter(java.io.PrintWriter log)
          set the log writer
static void setVerbose(boolean set)
          set the verbose flag
static void verbose(java.lang.String msg)
          print the verbose message if the logger is not null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isDebug

public static boolean isDebug

isVerbose

public static boolean isVerbose

logWriter

public static java.io.PrintWriter logWriter
Constructor Detail

TraceTimer

public TraceTimer()
Method Detail

setDebug

public static void setDebug(boolean set)
set the debug timer


setVerbose

public static void setVerbose(boolean set)
set the verbose flag


setLogWriter

public static void setLogWriter(java.io.PrintWriter log)
set the log writer


verbose

public static void verbose(java.lang.String msg)
print the verbose message if the logger is not null


debug

public static void debug(java.lang.String msg)
print the debug timer message if the logger is not null


error

public static void error(java.lang.String msg)
print the error message if the logger is not null


error

public static void error(java.lang.String msg,
                         java.lang.Throwable th)
print the throwing message if the logger is not null