Class LoggingConfiguration
- java.lang.Object
-
- com.launchdarkly.sdk.server.subsystems.LoggingConfiguration
-
public final class LoggingConfiguration extends java.lang.Object
Encapsulates the SDK's general logging configuration.Use
LoggingConfigurationBuilder
to construct an instance.- Since:
- 5.0.0
-
-
Constructor Summary
Constructors Constructor Description LoggingConfiguration(java.lang.String baseLoggerName, LDLogAdapter logAdapter, java.time.Duration logDataSourceOutageAsErrorAfter)
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBaseLoggerName()
Returns the configured base logger name.LDLogAdapter
getLogAdapter()
Returns the configured logging adapter.java.time.Duration
getLogDataSourceOutageAsErrorAfter()
The time threshold, if any, after which the SDK will log a data source outage atERROR
level instead ofWARN
level.
-
-
-
Constructor Detail
-
LoggingConfiguration
public LoggingConfiguration(java.lang.String baseLoggerName, LDLogAdapter logAdapter, java.time.Duration logDataSourceOutageAsErrorAfter)
Creates an instance.- Parameters:
baseLoggerName
- seegetBaseLoggerName()
logAdapter
- seegetLogAdapter()
logDataSourceOutageAsErrorAfter
- seegetLogDataSourceOutageAsErrorAfter()
-
-
Method Detail
-
getBaseLoggerName
public java.lang.String getBaseLoggerName()
Returns the configured base logger name.- Returns:
- the logger name
- Since:
- 5.10.0
-
getLogAdapter
public LDLogAdapter getLogAdapter()
Returns the configured logging adapter.- Returns:
- the logging adapter
- Since:
- 5.10.0
-
getLogDataSourceOutageAsErrorAfter
public java.time.Duration getLogDataSourceOutageAsErrorAfter()
The time threshold, if any, after which the SDK will log a data source outage atERROR
level instead ofWARN
level.- Returns:
- the error logging threshold, or null
- See Also:
LoggingConfigurationBuilder.logDataSourceOutageAsErrorAfter(java.time.Duration)
-
-