org.objectweb.jotm.util
Class TraceTm

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

public class TraceTm
extends java.lang.Object


Field Summary
protected static org.objectweb.util.monolog.api.Logger ccLogger
           
protected static org.objectweb.util.monolog.api.Logger exLogger
           
protected static boolean isConfigured
          log already configured flag
protected static org.objectweb.util.monolog.api.Logger jotmLogger
           
protected static org.objectweb.util.monolog.api.Logger jtaLogger
           
protected static org.objectweb.util.monolog.api.Logger otsLogger
           
static java.lang.String prefix
          prefix used to identify JOTM loggers
protected static org.objectweb.util.monolog.api.Logger recLogger
           
protected static org.objectweb.util.monolog.api.Logger tmLogger
           
 
Constructor Summary
TraceTm()
           
 
Method Summary
static void configure()
          Configure the log for JOTM.
protected static void configure(org.objectweb.util.monolog.api.LoggerFactory lf)
          Configure the log for JOTM
static void debugCc(java.lang.String msg)
          Log a concurrency control debug message.
static void debugJta(java.lang.String msg)
          Log a JTA debug message.
static void debugOts(java.lang.String msg)
          Log a OTS debug message.
static void debugRec(java.lang.String msg)
          Log a recovery debug message.
static void debugTm(java.lang.String msg)
          Log a TM debug message.
static void error(java.lang.String msg)
          Log an error message.
static void error(java.lang.String msg, java.lang.Throwable th)
          Log an error message and a stack trace from a Throwable object.
static boolean isDebugCc()
          Test if concurrency control debug messages are logged.
static boolean isDebugJta()
          Test if JTA debug messages are logged.
static boolean isDebugOts()
          Test if OTS debug messages are logged.
static boolean isDebugRec()
          Test if recovery debug messages are logged.
static boolean isDebugTm()
          Test if TM debug messages are logged.
static void logEx(java.lang.String msg)
          Log an example log message.
static void verbose(java.lang.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 java.lang.String prefix
prefix used to identify JOTM loggers

See Also:
Constant Field Values

isConfigured

protected static boolean isConfigured
log already configured flag


jotmLogger

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

tmLogger

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

ccLogger

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

recLogger

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

otsLogger

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

jtaLogger

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

exLogger

protected static org.objectweb.util.monolog.api.Logger exLogger
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

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


verbose

public static void verbose(java.lang.String msg)
Log a verbose message


error

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


error

public static void error(java.lang.String msg,
                         java.lang.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(java.lang.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(java.lang.String msg)
Log a JTA debug message.


isDebugOts

public static boolean isDebugOts()
Test if OTS debug messages are logged.

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

debugOts

public static void debugOts(java.lang.String msg)
Log a OTS debug message.


isDebugCc

public static boolean isDebugCc()
Test if concurrency control debug messages are logged.

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

debugCc

public static void debugCc(java.lang.String msg)
Log a concurrency control debug message.


isDebugRec

public static boolean isDebugRec()
Test if recovery debug messages are logged.

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

debugRec

public static void debugRec(java.lang.String msg)
Log a recovery debug message.


logEx

public static void logEx(java.lang.String msg)
Log an example log message.