org.objectweb.jotm

Class TraceTimer


public class TraceTimer
extends Object

Traces for module timer

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

Field Summary

static boolean
isDebug
static boolean
isVerbose
static PrintWriter
logWriter

Method Summary

static void
debug(String msg)
print the debug timer message if the logger is not null
static void
error(String msg)
print the error message if the logger is not null
static void
error(String msg, Throwable th)
print the throwing message if the logger is not null
static void
setDebug(boolean set)
set the debug timer
static void
setLogWriter(PrintWriter log)
set the log writer
static void
setVerbose(boolean set)
set the verbose flag
static void
verbose(String msg)
print the verbose message if the logger is not null

Field Details

isDebug

public static boolean isDebug


isVerbose

public static boolean isVerbose


logWriter

public static PrintWriter logWriter

Method Details

debug

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


error

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


error

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


setDebug

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


setLogWriter

public static void setLogWriter(PrintWriter log)
set the log writer


setVerbose

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


verbose

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