fr.dyade.aaa.common
Class Debug

java.lang.Object
  extended by fr.dyade.aaa.common.Debug
Direct Known Subclasses:
Debug

public class Debug
extends java.lang.Object

This class handles the debug traces.


Nested Class Summary
private static class Debug.PrivateLogger
           
 
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
private static java.lang.String debugDir
          Name of the directory where the debug configuration file can be found.
private static java.lang.String debugFileName
          Name of the debug configuration file.
static java.lang.String DEFAULT_DEBUG_DIR
          Default value for A3 debug configuration directory.
static java.lang.String DEFAULT_DEBUG_FILE
          Default filename for A3 debug configuration
protected static org.objectweb.util.monolog.api.LoggerFactory factory
           
private static Debug.PrivateLogger logger
           
 
Constructor Summary
Debug()
           
 
Method Summary
static org.objectweb.util.monolog.api.Logger getLogger(java.lang.String topic)
           
protected static void init()
           
private static void initialize()
          Initializes the package.
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

DEFAULT_DEBUG_DIR

public static final java.lang.String DEFAULT_DEBUG_DIR
Default value for A3 debug configuration directory.

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

debugDir

private static java.lang.String debugDir
Name of the directory where the debug configuration file can be found.


debugFileName

private static java.lang.String debugFileName
Name of the debug configuration file.


logger

private static Debug.PrivateLogger logger
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

initialize

private static void initialize()
                        throws java.lang.Exception
Initializes the package.

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 © 2010 ScalAgent D.T.. All Rights Reserved.