Class LoggingConfiguration
- java.lang.Object
-
- com.launchdarkly.sdk.server.subsystems.LoggingConfiguration
-
public final class LoggingConfiguration extends java.lang.ObjectEncapsulates the SDK's general logging configuration.Use
LoggingConfigurationBuilderto 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.StringgetBaseLoggerName()Returns the configured base logger name.LDLogAdaptergetLogAdapter()Returns the configured logging adapter.java.time.DurationgetLogDataSourceOutageAsErrorAfter()The time threshold, if any, after which the SDK will log a data source outage atERRORlevel instead ofWARNlevel.
-
-
-
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 atERRORlevel instead ofWARNlevel.- Returns:
- the error logging threshold, or null
- See Also:
LoggingConfigurationBuilder.logDataSourceOutageAsErrorAfter(java.time.Duration)
-
-