org.objectweb.carol.util.configuration
Class TraceCarol

java.lang.Object
  extended byorg.objectweb.carol.util.configuration.TraceCarol

public class TraceCarol
extends java.lang.Object

Class TraceCarol for Carol Trace configuration


Field Summary
protected static org.objectweb.util.monolog.api.Logger carolLogger
          the carol logger jndiCarol and rmiCarol logger are children of carol logger
protected static org.objectweb.util.monolog.api.Logger cmiDesLogger
           
protected static org.objectweb.util.monolog.api.Logger cmiJndiLogger
           
protected static org.objectweb.util.monolog.api.Logger cmiRegistryLogger
           
protected static org.objectweb.util.monolog.api.Logger exportCarolLogger
           
protected static org.objectweb.util.monolog.api.Logger jndiCarolLogger
           
static java.lang.String prefix
          prefix used to identify CAROL loggers
protected static org.objectweb.util.monolog.api.Logger rmiCarolLogger
           
 
Constructor Summary
TraceCarol()
           
 
Method Summary
static void configure()
          Configure the log for CAROL.
static void configure(org.objectweb.util.monolog.api.LoggerFactory lf)
          Configure the log for CAROL
static void debugCarol(java.lang.String msg)
          Log a Carol debug message.
static void debugCmiDes(java.lang.String msg)
          Log a Cmi DES debug message.
static void debugCmiJndi(java.lang.String msg)
          Log a Cmi JNDI debug message.
static void debugCmiRegistry(java.lang.String msg)
          Log a Cmi registry debug message.
static void debugExportCarol(java.lang.String msg)
           
static void debugJndiCarol(java.lang.String msg)
          Log a Jndi debug message.
static void debugRmiCarol(java.lang.String msg)
          Log a Rmi 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 void infoCarol(java.lang.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(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 CAROL loggers

See Also:
Constant Field Values

carolLogger

protected static org.objectweb.util.monolog.api.Logger carolLogger
the carol logger jndiCarol and rmiCarol logger are children of carol logger


jndiCarolLogger

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

rmiCarolLogger

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

exportCarolLogger

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

cmiDesLogger

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

cmiJndiLogger

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

cmiRegistryLogger

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

TraceCarol

public TraceCarol()
Method Detail

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(org.objectweb.util.monolog.api.LoggerFactory lf)
Configure the log for CAROL


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.


isDebugCarol

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

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

debugCarol

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


isInfoCarol

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

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

infoCarol

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


isDebugJndiCarol

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

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

debugJndiCarol

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


isDebugRmiCarol

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

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

debugRmiCarol

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


isDebugExportCarol

public static boolean isDebugExportCarol()
Returns:
boolean true is is debug export

debugExportCarol

public static void debugExportCarol(java.lang.String msg)

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

debugCmiDes

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


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

debugCmiJndi

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


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

debugCmiRegistry

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