fr.dyade.aaa.util

Class Debug

Known Direct Subclasses:
Debug

public class Debug
extends java.lang.Object

This class handles the debug traces.

Field Summary

static String
DEBUG_DIR_PROPERTY
Property name for A3 debug configuration directory.
static String
DEBUG_FILE_PROPERTY
Property name for A3 debug configuration filename
static String
DEFAULT_DEBUG_FILE
Default filename for A3 debug configuration
static boolean
debug
flag used to remove huge logging
protected static LoggerFactory
factory

Method Summary

static Logger
getLogger(String topic)
protected static void
init()
static void
reinit()
static void
setDebugDir(String debugDir)
static void
setDebugFileName(String debugFileName)
static void
setLoggerFactory(LoggerFactory loggerFactory)
Set the monolog Loggerfactory
static void
setLoggerLevel(String topic, int level)

Field Details

DEBUG_DIR_PROPERTY

public static final 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.


DEBUG_FILE_PROPERTY

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


DEFAULT_DEBUG_FILE

public static final String DEFAULT_DEBUG_FILE
Default filename for A3 debug configuration


debug

public static final boolean debug
flag used to remove huge logging

Field Value:
true


factory

protected static LoggerFactory factory

Method Details

getLogger

public static Logger getLogger(String topic)


init

protected static void init()
            throws Exception


reinit

public static void reinit()
            throws Exception


setDebugDir

public static void setDebugDir(String debugDir)


setDebugFileName

public static void setDebugFileName(String debugFileName)


setLoggerFactory

public static void setLoggerFactory(LoggerFactory loggerFactory)
Set the monolog Loggerfactory

Parameters:
loggerFactory - the monolog LoggerFactory


setLoggerLevel

public static void setLoggerLevel(String topic,
                                  int level)


Copyright B) 2004 Scalagent - All rights reserved