Class LoggerConfig
java.lang.Object
io.opentelemetry.sdk.logs.internal.LoggerConfig
- Direct Known Subclasses:
AutoValue_LoggerConfig
A collection of configuration options which define the behavior of a
Logger.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final LoggerConfigprivate static final LoggerConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScopeConfiguratorBuilder<LoggerConfig> static LoggerConfigReturns the defaultLoggerConfig, which is used when no configurator is set or when the logger configurator returnsnullfor aInstrumentationScopeInfo.static LoggerConfigdisabled()Returns a disabledLoggerConfig.static LoggerConfigenabled()Returns an enabledLoggerConfig.abstract booleanReturnstrueif this logger is enabled.
-
Field Details
-
DEFAULT_CONFIG
-
DISABLED_CONFIG
-
-
Constructor Details
-
LoggerConfig
LoggerConfig()
-
-
Method Details
-
disabled
Returns a disabledLoggerConfig. -
enabled
Returns an enabledLoggerConfig. -
defaultConfig
Returns the defaultLoggerConfig, which is used when no configurator is set or when the logger configurator returnsnullfor aInstrumentationScopeInfo. -
configuratorBuilder
-
isEnabled
public abstract boolean isEnabled()Returnstrueif this logger is enabled. Defaults totrue.
-