Interface LoggingFactory

  • All Known Implementing Classes:
    SimpleLoggingFactory, Slf4jMonologFactory

    public interface LoggingFactory
    This 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 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.
      • parse

        Level parse​(String name)
        Returns the Level object corresponding to specified name.
        Parameters:
        name - The level name, for example DEBUG or FATAL.
        Returns:
        the Level object corresponding to specified name.