Package org.objectweb.util.monolog.api
Interface LoggingFactory
-
- All Known Implementing Classes:
SimpleLoggingFactory,Slf4jMonologFactory
public interface LoggingFactoryThis interface decouples the logging wrapper from the actual implementation. It allows the effective configuration of the underlying logging system through the initialize method and the search for loggers. It is normally only used by the Debug class (fr.dyade.aaa.common package). /!\ Be careful, the implementation class needs a public constructor without parameters. /!\ Call to BasicLevel.initialize(). test to call after initialisation of logging.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LevelgetDebugLevel()Returns the Level object for DEBUG level.LevelgetErrorLevel()Returns the Level object for ERROR level.LevelgetFatalLevel()Returns the Level object for FATAL level.LevelgetInfoLevel()Returns the Level object for INFO level.LoggergetLogger(String topic)Find or create a logger for a named subsystem.LevelgetWarnLevel()Returns the Level object for WARN level.voidinitialize(String debugDir, String debugFileName)Initializes the logging subsystem.Levelparse(String name)Returns the Level object corresponding to specified name.
-
-
-
Method Detail
-
initialize
void initialize(String debugDir, String debugFileName)
Initializes the logging subsystem.- Parameters:
debugDir-debugFileName-
-
getLogger
Logger getLogger(String topic)
Find or create a logger for a named subsystem.- Parameters:
topic- A name for the logger. This should be a dot-separated name and should normally be based on the package name or class name of the subsystem.- Returns:
- a suitable Logger
-
getFatalLevel
Level getFatalLevel()
Returns the Level object for FATAL level.- Returns:
- the Level object for FATAL level.
-
getErrorLevel
Level getErrorLevel()
Returns the Level object for ERROR level.- Returns:
- the Level object for ERROR level.
-
getWarnLevel
Level getWarnLevel()
Returns the Level object for WARN level.- Returns:
- the Level object for WARN level.
-
getInfoLevel
Level getInfoLevel()
Returns the Level object for INFO level.- Returns:
- the Level object for INFO level.
-
getDebugLevel
Level getDebugLevel()
Returns the Level object for DEBUG level.- Returns:
- the Level object for DEBUG level.
-
-