Class StaticLoggerBinder

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

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

      Fields 
      Modifier and Type Field Description
      static java.lang.String REQUESTED_API_VERSION
      Declare the version of the SLF4J API this implementation is compiled against.
    • 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 filed is usually modified with each release.
    • Method Detail

      • getSingleton

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

        public void setTask​(org.apache.tools.ant.Task task)
        Set the Task which will this is to log through.
        Parameters:
        task - the task through which to log
      • getLoggerFactory

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

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