org.objectweb.carol.util.configuration
Class TraceCarol

java.lang.Object
  |
  +--org.objectweb.carol.util.configuration.TraceCarol

public class TraceCarol
extends java.lang.Object


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 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 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 boolean isDebugCarol()
          Test if Carol debug messages are logged.
static boolean isDebugJndiCarol()
          Test if Jndi debug messages are logged.
static boolean isDebugRmiCarol()
          Test if Rmi debug 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
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.


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.