Class SimpleBackendFactory
- java.lang.Object
-
- com.google.common.flogger.backend.system.BackendFactory
-
- com.google.common.flogger.backend.system.SimpleBackendFactory
-
public final class SimpleBackendFactory extends BackendFactory
Default factory for creating logger backends.See class documentation in
BackendFactoryfor important implementation restrictions.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.flogger.backend.LoggerBackendcreate(java.lang.String loggingClass)Creates a logger backend of the given class name for use by a Fluent Logger.static BackendFactorygetInstance()java.lang.StringtoString()
-
-
-
Method Detail
-
getInstance
public static BackendFactory getInstance()
-
create
public com.google.common.flogger.backend.LoggerBackend create(java.lang.String loggingClass)
Description copied from class:BackendFactoryCreates 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:
createin classBackendFactory- 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:
toStringin classjava.lang.Object
-
-