Class LogServiceProvider

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

    public final class LogServiceProvider
    extends java.lang.Object
    implements org.slf4j.spi.SLF4JServiceProvider
    The service provider for the IIZI implementation for SLF4J.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      org.slf4j.ILoggerFactorygetLoggerFactory()
      Return the instance of ILoggerFactory that LoggerFactory class should bind to.
      org.slf4j.IMarkerFactorygetMarkerFactory()
      Return the instance of IMarkerFactory that MarkerFactory class should bind to.
      org.slf4j.spi.MDCAdaptergetMDCAdapter()
      Return the instance of MDCAdapter that MDC should bind to.
      java.lang.StringgetRequestedApiVersion()
      The requested API version of this service provider.
      voidinitialize()
      Initialize the logging back-end.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogServiceProvider

        public LogServiceProvider()
        Constructor.
    • Method Detail

      • getLoggerFactory

        public org.slf4j.ILoggerFactory getLoggerFactory()
        Return the instance of ILoggerFactory that LoggerFactory class should bind to.
        Specified by:
        getLoggerFactory in interface org.slf4j.spi.SLF4JServiceProvider
        Returns:
        instance of ILoggerFactory
      • getMarkerFactory

        public org.slf4j.IMarkerFactory getMarkerFactory()
        Return the instance of IMarkerFactory that MarkerFactory class should bind to.
        Specified by:
        getMarkerFactory in interface org.slf4j.spi.SLF4JServiceProvider
        Returns:
        instance of IMarkerFactory
      • getMDCAdapter

        public org.slf4j.spi.MDCAdapter getMDCAdapter()
        Return the instance of MDCAdapter that MDC should bind to.
        Specified by:
        getMDCAdapter in interface org.slf4j.spi.SLF4JServiceProvider
        Returns:
        instance of MDCAdapter
      • getRequestedApiVersion

        public java.lang.String getRequestedApiVersion()
        The requested API version of this service provider.
        Specified by:
        getRequestedApiVersion in interface org.slf4j.spi.SLF4JServiceProvider
        Returns:
        "1.8"
      • initialize

        public void initialize()
        Initialize the logging back-end.

        WARNING: This method is intended to be called once by LoggerFactory class and from nowhere else.

        Specified by:
        initialize in interface org.slf4j.spi.SLF4JServiceProvider