Package org.objectweb.util.monolog.slf4j
Class Slf4jMonologFactory
- java.lang.Object
-
- org.objectweb.util.monolog.slf4j.Slf4jMonologFactory
-
- All Implemented Interfaces:
LoggingFactory
public class Slf4jMonologFactory extends Object implements LoggingFactory
Gestionnaire et factory principale pour Monolog. Défiit les différents niveaux "standards" de logs
-
-
Field Summary
Fields Modifier and Type Field Description private static Slf4jLoggerLevelSetterruntimeReconfiguration
-
Constructor Summary
Constructors Constructor Description Slf4jMonologFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete 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.static voidsetRuntimeReconfiguration(Slf4jLoggerLevelSetter runtimeReconfiguration)
-
-
-
Field Detail
-
runtimeReconfiguration
private static Slf4jLoggerLevelSetter runtimeReconfiguration
-
-
Method Detail
-
initialize
public void initialize(String debugDir, String debugFileName)
Description copied from interface:LoggingFactoryInitializes the logging subsystem.- Specified by:
initializein interfaceLoggingFactory
-
getLogger
public Logger getLogger(String topic)
Description copied from interface:LoggingFactoryFind or create a logger for a named subsystem.- Specified by:
getLoggerin interfaceLoggingFactory- 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
public Level getFatalLevel()
Description copied from interface:LoggingFactoryReturns the Level object for FATAL level.- Specified by:
getFatalLevelin interfaceLoggingFactory- Returns:
- the Level object for FATAL level.
-
getErrorLevel
public Level getErrorLevel()
Description copied from interface:LoggingFactoryReturns the Level object for ERROR level.- Specified by:
getErrorLevelin interfaceLoggingFactory- Returns:
- the Level object for ERROR level.
-
getWarnLevel
public Level getWarnLevel()
Description copied from interface:LoggingFactoryReturns the Level object for WARN level.- Specified by:
getWarnLevelin interfaceLoggingFactory- Returns:
- the Level object for WARN level.
-
getInfoLevel
public Level getInfoLevel()
Description copied from interface:LoggingFactoryReturns the Level object for INFO level.- Specified by:
getInfoLevelin interfaceLoggingFactory- Returns:
- the Level object for INFO level.
-
getDebugLevel
public Level getDebugLevel()
Description copied from interface:LoggingFactoryReturns the Level object for DEBUG level.- Specified by:
getDebugLevelin interfaceLoggingFactory- Returns:
- the Level object for DEBUG level.
-
parse
public Level parse(String name)
Description copied from interface:LoggingFactoryReturns the Level object corresponding to specified name.- Specified by:
parsein interfaceLoggingFactory- Parameters:
name- The level name, for example DEBUG or FATAL.- Returns:
- the Level object corresponding to specified name.
-
setRuntimeReconfiguration
public static void setRuntimeReconfiguration(Slf4jLoggerLevelSetter runtimeReconfiguration)
-
-