Class SimpleBackendFactory


  • public final class SimpleBackendFactory
    extends BackendFactory
    Default factory for creating logger backends.

    See class documentation in BackendFactory for important implementation restrictions.

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.common.flogger.backend.LoggerBackend create​(java.lang.String loggingClass)
      Creates a logger backend of the given class name for use by a Fluent Logger.
      static BackendFactory getInstance()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • create

        public com.google.common.flogger.backend.LoggerBackend create​(java.lang.String loggingClass)
        Description copied from class: BackendFactory
        Creates a logger backend of the given class name for use by a Fluent Logger. Note that the returned backend need not be unique; one backend could be used by multiple loggers. The given class name must be in the normal dot-separated form (e.g., "com.example.Foo$Bar") rather than the internal binary format "com/example/Foo$Bar").
        Specified by:
        create in class BackendFactory
        Parameters:
        loggingClass - the fully-qualified name of the Java class to which the logger is associated. The logger name is derived from this string in a backend specific way.
      • toString

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