Class LogBinder


  • public class LogBinder
    extends java.lang.Object
    Performs static binding to IIZI implementation of SLF4J when the LogServiceProvider ServiceLoader failed loading and instantiating the class.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      ConstructorDescription
      LogBinder() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static voidinit()
      Loads the LogServiceProvider using the ServiceLoader.
      static voidsetJettyDebug​(boolean on)
      Assigns Jetty debug.
      • Methods inherited from class java.lang.Object

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

      • LogBinder

        public LogBinder()
    • Method Detail

      • setJettyDebug

        public static void setJettyDebug​(boolean on)
        Assigns Jetty debug.
      • init

        public static void init()
        Loads the LogServiceProvider using the ServiceLoader. If it fails (typically in non-Jar mode or in IIZI development without Jars), it fixes up the failure by statically binding directly in the LoggerFactory class.

        This method does nothing if called more than once.