public class DefaultPlatform
extends com.google.common.flogger.backend.Platform
SimpleLoggerBackend logger backends.
This class is designed to allow configuration via system properties. Each aspect of the
platform is configured by providing the name of a static method, in the form
"<package>.<class>#<method>", which returns an instance of the appropriate type.
The namespace for system properties is:
flogger.backend_factory: Provides an instance of
com.google.common.flogger.backend.system.BackendFactory.
flogger.logging_context: Provides an instance of
com.google.common.flogger.backend.system.LoggingContext.
flogger.clock: Provides an instance of
com.google.common.flogger.backend.system.Clock.
| Constructor and Description |
|---|
DefaultPlatform() |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.common.flogger.backend.LoggerBackend |
getBackendImpl(java.lang.String className) |
protected com.google.common.flogger.backend.Platform.LogCallerFinder |
getCallerFinderImpl() |
protected java.lang.String |
getConfigInfoImpl() |
protected long |
getCurrentTimeNanosImpl() |
protected com.google.common.flogger.backend.Tags |
getInjectedTagsImpl() |
protected boolean |
shouldForceLoggingImpl(java.lang.String loggerName,
java.util.logging.Level level,
boolean isEnabled) |
protected com.google.common.flogger.backend.Platform.LogCallerFinder getCallerFinderImpl()
getCallerFinderImpl in class com.google.common.flogger.backend.Platformprotected com.google.common.flogger.backend.LoggerBackend getBackendImpl(java.lang.String className)
getBackendImpl in class com.google.common.flogger.backend.Platformprotected boolean shouldForceLoggingImpl(java.lang.String loggerName,
java.util.logging.Level level,
boolean isEnabled)
shouldForceLoggingImpl in class com.google.common.flogger.backend.Platformprotected com.google.common.flogger.backend.Tags getInjectedTagsImpl()
getInjectedTagsImpl in class com.google.common.flogger.backend.Platformprotected long getCurrentTimeNanosImpl()
getCurrentTimeNanosImpl in class com.google.common.flogger.backend.Platformprotected java.lang.String getConfigInfoImpl()
getConfigInfoImpl in class com.google.common.flogger.backend.Platform