Class StaticLoggerBinder

  • All Implemented Interfaces:
    org.slf4j.spi.LoggerFactoryBinder

    public final class StaticLoggerBinder
    extends java.lang.Object
    implements org.slf4j.spi.LoggerFactoryBinder
    SLF4J LoggerFactoryBinder implementation using Log4j. This class is part of the required classes used to specify an SLF4J logger provider implementation.
    • Field Detail

      • REQUESTED_API_VERSION

        public static java.lang.String REQUESTED_API_VERSION
        Declare the version of the SLF4J API this implementation is compiled against. The value of this field is usually modified with each release.
      • LOGGER_FACTORY_CLASS_STR

        private static final java.lang.String LOGGER_FACTORY_CLASS_STR
      • SINGLETON

        private static final StaticLoggerBinder SINGLETON
        The unique instance of this class.
      • loggerFactory

        private final org.slf4j.ILoggerFactory loggerFactory
        The ILoggerFactory instance returned by the getLoggerFactory() method should always be the same object
    • Constructor Detail

      • StaticLoggerBinder

        private StaticLoggerBinder()
        Private constructor to prevent instantiation
    • Method Detail

      • getSingleton

        public static StaticLoggerBinder getSingleton()
        Returns the singleton of this class.
        Returns:
        the StaticLoggerBinder singleton
      • getLoggerFactory

        public org.slf4j.ILoggerFactory getLoggerFactory()
        Returns the factory.
        Specified by:
        getLoggerFactory in interface org.slf4j.spi.LoggerFactoryBinder
        Returns:
        the factor.
      • getLoggerFactoryClassStr

        public java.lang.String getLoggerFactoryClassStr()
        Returns the class name.
        Specified by:
        getLoggerFactoryClassStr in interface org.slf4j.spi.LoggerFactoryBinder
        Returns:
        the class name;