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 LoggerConfig
private static final LoggerConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScopeConfiguratorBuilder
<LoggerConfig> static LoggerConfig
Returns the defaultLoggerConfig
, which is used when no configurator is set or when the logger configurator returnsnull
for aInstrumentationScopeInfo
.static LoggerConfig
disabled()
Returns a disabledLoggerConfig
.static LoggerConfig
enabled()
Returns an enabledLoggerConfig
.abstract boolean
Returnstrue
if 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 returnsnull
for aInstrumentationScopeInfo
. -
configuratorBuilder
-
isEnabled
public abstract boolean isEnabled()Returnstrue
if this logger is enabled. Defaults totrue
.
-