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(String className) |
protected com.google.common.flogger.backend.Platform.LogCallerFinder |
getCallerFinderImpl() |
protected String |
getConfigInfoImpl() |
protected long |
getCurrentTimeNanosImpl() |
protected com.google.common.flogger.backend.Tags |
getInjectedTagsImpl() |
protected boolean |
shouldForceLoggingImpl(String loggerName,
Level level,
boolean isEnabled) |
protected com.google.common.flogger.backend.Platform.LogCallerFinder getCallerFinderImpl()
getCallerFinderImpl
in class com.google.common.flogger.backend.Platform
protected com.google.common.flogger.backend.LoggerBackend getBackendImpl(String className)
getBackendImpl
in class com.google.common.flogger.backend.Platform
protected boolean shouldForceLoggingImpl(String loggerName, Level level, boolean isEnabled)
shouldForceLoggingImpl
in class com.google.common.flogger.backend.Platform
protected com.google.common.flogger.backend.Tags getInjectedTagsImpl()
getInjectedTagsImpl
in class com.google.common.flogger.backend.Platform
protected long getCurrentTimeNanosImpl()
getCurrentTimeNanosImpl
in class com.google.common.flogger.backend.Platform
protected String getConfigInfoImpl()
getConfigInfoImpl
in class com.google.common.flogger.backend.Platform
Copyright © 2022. All rights reserved.