Class Slf4jBackendFactory


  • public final class Slf4jBackendFactory
    extends com.google.common.flogger.backend.system.BackendFactory
    BackendFactory for SLF4J.

    When using Flogger's DefaultPlatform, this factory will automatically be used if it is included on the classpath and no other implementation of BackendFactory (other than the default implementation) is. To specify it more explicitly or to work around an issue where multiple BackendFactory implementations are on the classpath, you can set the flogger.backend_factory system property:

    • flogger.backend_factory=com.google.common.flogger.backend.slf4j.Slf4jBackendFactory
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.common.flogger.backend.LoggerBackend create​(java.lang.String loggingClassName)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Slf4jBackendFactory

        public Slf4jBackendFactory()
    • Method Detail

      • create

        public com.google.common.flogger.backend.LoggerBackend create​(java.lang.String loggingClassName)
        Specified by:
        create in class com.google.common.flogger.backend.system.BackendFactory
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object