Package fr.dyade.aaa.common
Class Debug
- java.lang.Object
-
- fr.dyade.aaa.common.Debug
-
public final class Debug extends Object
This class handles the debug traces.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEBUG_DIR_PROPERTYProperty name for A3 debug configuration directory.static StringDEBUG_FILE_PROPERTYProperty name for A3 debug configuration filenamestatic StringDEBUG_LOGGING_FACTORY_PROPERTYProperty name for LoggerFactory classnamestatic StringDEFAULT_DEBUG_FILEDefault filename for A3 debug configurationstatic StringDEFAULT_DEBUG_LOGGING_FACTORYDefault LoggerFactory classnameprivate static LoggingFactoryfactory
-
Constructor Summary
Constructors Constructor Description Debug()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidclearLevel(String classname)static LoggergetLogger(String topic)protected static voidinit()static voidsetDebugLevel(String classname)static voidsetErrorLevel(String classname)static voidsetFatalLevel(String classname)static voidsetInfoLevel(String classname)static voidsetLoggerFactory(LoggingFactory loggerFactory)Deprecated.static voidsetLoggerLevel(String classname, String level)static voidsetWarnLevel(String classname)
-
-
-
Field Detail
-
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.- See Also:
- Constant Field Values
-
DEBUG_FILE_PROPERTY
public static final String DEBUG_FILE_PROPERTY
Property name for A3 debug configuration filename- See Also:
- Constant Field Values
-
DEFAULT_DEBUG_FILE
public static final String DEFAULT_DEBUG_FILE
Default filename for A3 debug configuration- See Also:
- Constant Field Values
-
DEBUG_LOGGING_FACTORY_PROPERTY
public static final String DEBUG_LOGGING_FACTORY_PROPERTY
Property name for LoggerFactory classname- See Also:
- Constant Field Values
-
DEFAULT_DEBUG_LOGGING_FACTORY
public static final String DEFAULT_DEBUG_LOGGING_FACTORY
Default LoggerFactory classname- See Also:
- Constant Field Values
-
factory
private static LoggingFactory factory
-
-
Method Detail
-
init
protected static void init()
-
setLoggerFactory
@Deprecated public static void setLoggerFactory(LoggingFactory loggerFactory)
Deprecated.Set the Monolog Loggerfactory- Parameters:
loggerFactory- the monolog LoggerFactory
-
setDebugLevel
public static void setDebugLevel(String classname)
-
setInfoLevel
public static void setInfoLevel(String classname)
-
setWarnLevel
public static void setWarnLevel(String classname)
-
setErrorLevel
public static void setErrorLevel(String classname)
-
setFatalLevel
public static void setFatalLevel(String classname)
-
setLoggerLevel
public static void setLoggerLevel(String classname, String level) throws Exception
- Throws:
Exception
-
clearLevel
public static void clearLevel(String classname)
-
-