Class StaticLoggerBinder

java.lang.Object
org.slf4j.impl.StaticLoggerBinder
All Implemented Interfaces:
org.slf4j.spi.LoggerFactoryBinder

public class StaticLoggerBinder extends Object implements org.slf4j.spi.LoggerFactoryBinder
The binding of LoggerFactory class with an actual instance of ILoggerFactory is performed using information returned by this class.
  • Field Details

    • REQUESTED_API_VERSION

      public static 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.
    • NULL_CS_URL

      static final String NULL_CS_URL
      See Also:
    • SINGLETON

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

      private static Object KEY
    • initialized

      private boolean initialized
    • defaultLoggerContext

      private LoggerContext defaultLoggerContext
    • contextSelectorBinder

      private final ContextSelectorStaticBinder contextSelectorBinder
  • Constructor Details

    • StaticLoggerBinder

      private StaticLoggerBinder()
  • Method Details

    • getSingleton

      public static StaticLoggerBinder getSingleton()
    • reset

      static void reset()
      Package access for testing purposes.
    • init

      void init()
      Package access for testing purposes.
    • getLoggerFactory

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

      public String getLoggerFactoryClassStr()
      Specified by:
      getLoggerFactoryClassStr in interface org.slf4j.spi.LoggerFactoryBinder