org.objectweb.jotm
Class TraceTm

java.lang.Object
  |
  +--org.objectweb.jotm.TraceTm

public class TraceTm
extends Object


Field Summary
protected static org.objectweb.util.monolog.api.Logger jotmLogger
           
protected static org.objectweb.util.monolog.api.Logger jtaLogger
           
static String prefix
          prefix used to identify JOTM loggers
protected static org.objectweb.util.monolog.api.Logger tmLogger
           
 
Constructor Summary
TraceTm()
           
 
Method Summary
static void configure()
          Configure the log for JOTM.
static void configure(org.objectweb.util.monolog.api.LoggerFactory lf)
          Configure the log for JOTM
static void debugJta(String msg)
          Log a JTA debug message.
static void debugTm(String msg)
          Log a TM debug message.
static void error(String msg)
          Log an error message.
static void error(String msg, Throwable th)
          Log an error message and a stack trace from a Throwable object.
static boolean isDebugJta()
          Test if JTA debug messages are logged.
static boolean isDebugTm()
          Test if TM debug messages are logged.
static void verbose(String msg)
          Log a verbose message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefix

public static final String prefix
prefix used to identify JOTM loggers

See Also:
Constant Field Values

jotmLogger

protected static org.objectweb.util.monolog.api.Logger jotmLogger

tmLogger

protected static org.objectweb.util.monolog.api.Logger tmLogger

jtaLogger

protected static org.objectweb.util.monolog.api.Logger jtaLogger
Constructor Detail

TraceTm

public TraceTm()
Method Detail

configure

public static void configure()
Configure the log for JOTM. Log configuration is stored in a property file, trace.properties, which should be available from the classpath.


configure

public static void configure(org.objectweb.util.monolog.api.LoggerFactory lf)
Configure the log for JOTM


verbose

public static void verbose(String msg)
Log a verbose message


error

public static void error(String msg)
Log an error message.


error

public static void error(String msg,
                         Throwable th)
Log an error message and a stack trace from a Throwable object.


isDebugTm

public static boolean isDebugTm()
Test if TM debug messages are logged.

Returns:
boolean true if TM debug messages are logged, false otherwise

debugTm

public static void debugTm(String msg)
Log a TM debug message.


isDebugJta

public static boolean isDebugJta()
Test if JTA debug messages are logged.

Returns:
boolean true if JTA debug messages are logged, false otherwise

debugJta

public static void debugJta(String msg)
Log a JTA debug message.