fr.dyade.aaa.util
Class Debug

java.lang.Object
  extended byfr.dyade.aaa.util.Debug
Direct Known Subclasses:
Debug

public class Debug
extends java.lang.Object

This class handles the debug traces.


Field Summary
static boolean debug
          flag used to remove huge logging
static java.lang.String DEBUG_DIR_PROPERTY
          Property name for A3 debug configuration directory.
static java.lang.String DEBUG_FILE_PROPERTY
          Property name for A3 debug configuration filename
static java.lang.String DEFAULT_DEBUG_FILE
          Default filename for A3 debug configuration
protected static org.objectweb.util.monolog.api.LoggerFactory factory
           
 
Constructor Summary
Debug()
           
 
Method Summary
static org.objectweb.util.monolog.api.Logger getLogger(java.lang.String topic)
           
protected static void init()
           
static void reinit()
           
static void setDebugDir(java.lang.String debugDir)
           
static void setDebugFileName(java.lang.String debugFileName)
           
static void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerFactory)
          Set the monolog Loggerfactory
static void setLoggerLevel(java.lang.String topic, int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static final boolean debug
flag used to remove huge logging

See Also:
Constant Field Values

DEBUG_DIR_PROPERTY

public static final java.lang.String DEBUG_DIR_PROPERTY
Property name for A3 debug configuration directory. If not defined, the configuration file is searched from the search path used to load classes.

See Also:
Constant Field Values

DEBUG_FILE_PROPERTY

public static final java.lang.String DEBUG_FILE_PROPERTY
Property name for A3 debug configuration filename

See Also:
Constant Field Values

DEFAULT_DEBUG_FILE

public static final java.lang.String DEFAULT_DEBUG_FILE
Default filename for A3 debug configuration

See Also:
Constant Field Values

factory

protected static org.objectweb.util.monolog.api.LoggerFactory factory
Constructor Detail

Debug

public Debug()
Method Detail

setDebugDir

public static void setDebugDir(java.lang.String debugDir)

setDebugFileName

public static void setDebugFileName(java.lang.String debugFileName)

reinit

public static void reinit()
                   throws java.lang.Exception
Throws:
java.lang.Exception

init

protected static void init()
                    throws java.lang.Exception
Throws:
java.lang.Exception

getLogger

public static org.objectweb.util.monolog.api.Logger getLogger(java.lang.String topic)

setLoggerLevel

public static void setLoggerLevel(java.lang.String topic,
                                  int level)

setLoggerFactory

public static void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerFactory)
Set the monolog Loggerfactory

Parameters:
loggerFactory - the monolog LoggerFactory


Copyright ? 2004 Scalagent - All rights reserved