org.objectweb.carol.util.configuration

Class TraceCarol


public class TraceCarol
extends java.lang.Object

Class TraceCarol for Carol Trace configuration

Field Summary

protected static Logger
carolLogger
the carol logger jndiCarol and rmiCarol logger are children of carol logger
protected static Logger
cmiDesLogger
protected static Logger
cmiJndiLogger
protected static Logger
cmiRegistryLogger
protected static Logger
exportCarolLogger
protected static Logger
jndiCarolLogger
static String
prefix
prefix used to identify CAROL loggers
protected static Logger
rmiCarolLogger

Method Summary

static void
configure()
Configure the log for CAROL.
static void
configure(LoggerFactory lf)
Configure the log for CAROL
static void
debugCarol(String msg)
Log a Carol debug message.
static void
debugCmiDes(String msg)
Log a Cmi DES debug message.
static void
debugCmiJndi(String msg)
Log a Cmi JNDI debug message.
static void
debugCmiRegistry(String msg)
Log a Cmi registry debug message.
static void
debugExportCarol(String msg)
static void
debugJndiCarol(String msg)
Log a Jndi debug message.
static void
debugRmiCarol(String msg)
Log a Rmi 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 void
infoCarol(String msg)
Log a Carol Info message.
static boolean
isDebugCarol()
Test if Carol debug messages are logged.
static boolean
isDebugCmiDes()
Test if Cmi DES debug messages are logged.
static boolean
isDebugCmiJndi()
Test if Cmi JNDI debug messages are logged.
static boolean
isDebugCmiRegistry()
Test if Cmi registry debug messages are logged.
static boolean
isDebugExportCarol()
static boolean
isDebugJndiCarol()
Test if Jndi debug messages are logged.
static boolean
isDebugRmiCarol()
Test if Rmi debug messages are logged.
static boolean
isInfoCarol()
Test if Carol info messages are logged.
static void
verbose(String msg)
Log a verbose message

Field Details

carolLogger

protected static Logger carolLogger
the carol logger jndiCarol and rmiCarol logger are children of carol logger


cmiDesLogger

protected static Logger cmiDesLogger


cmiJndiLogger

protected static Logger cmiJndiLogger


cmiRegistryLogger

protected static Logger cmiRegistryLogger


exportCarolLogger

protected static Logger exportCarolLogger


jndiCarolLogger

protected static Logger jndiCarolLogger


prefix

public static final String prefix
prefix used to identify CAROL loggers


rmiCarolLogger

protected static Logger rmiCarolLogger

Method Details

configure

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


configure

public static void configure(LoggerFactory lf)
Configure the log for CAROL

Parameters:


debugCarol

public static void debugCarol(String msg)
Log a Carol debug message.

Parameters:


debugCmiDes

public static void debugCmiDes(String msg)
Log a Cmi DES debug message.

Parameters:


debugCmiJndi

public static void debugCmiJndi(String msg)
Log a Cmi JNDI debug message.

Parameters:


debugCmiRegistry

public static void debugCmiRegistry(String msg)
Log a Cmi registry debug message.

Parameters:


debugExportCarol

public static void debugExportCarol(String msg)

Parameters:


debugJndiCarol

public static void debugJndiCarol(String msg)
Log a Jndi debug message.

Parameters:


debugRmiCarol

public static void debugRmiCarol(String msg)
Log a Rmi debug message.

Parameters:


error

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

Parameters:


error

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

Parameters:


infoCarol

public static void infoCarol(String msg)
Log a Carol Info message.

Parameters:


isDebugCarol

public static boolean isDebugCarol()
Test if Carol debug messages are logged.

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


isDebugCmiDes

public static boolean isDebugCmiDes()
Test if Cmi DES debug messages are logged.

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


isDebugCmiJndi

public static boolean isDebugCmiJndi()
Test if Cmi JNDI debug messages are logged.

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


isDebugCmiRegistry

public static boolean isDebugCmiRegistry()
Test if Cmi registry debug messages are logged.

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


isDebugExportCarol

public static boolean isDebugExportCarol()

Returns:
boolean true is is debug export


isDebugJndiCarol

public static boolean isDebugJndiCarol()
Test if Jndi debug messages are logged.

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


isDebugRmiCarol

public static boolean isDebugRmiCarol()
Test if Rmi debug messages are logged.

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


isInfoCarol

public static boolean isInfoCarol()
Test if Carol info messages are logged.

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


verbose

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

Parameters: