com.launchdarkly.sdk.server.LoggingConfigurationImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of launchdarkly-java-server-sdk Show documentation
Show all versions of launchdarkly-java-server-sdk Show documentation
Official LaunchDarkly SDK for Java
package com.launchdarkly.sdk.server;
import com.launchdarkly.logging.LDLogAdapter;
import com.launchdarkly.sdk.server.interfaces.LoggingConfiguration;
import java.time.Duration;
final class LoggingConfigurationImpl implements LoggingConfiguration {
private final String baseLoggerName;
private final LDLogAdapter logAdapter;
private final Duration logDataSourceOutageAsErrorAfter;
LoggingConfigurationImpl(
String baseLoggerName,
LDLogAdapter logAdapter,
Duration logDataSourceOutageAsErrorAfter
) {
this.baseLoggerName = baseLoggerName;
this.logAdapter = logAdapter;
this.logDataSourceOutageAsErrorAfter = logDataSourceOutageAsErrorAfter;
}
@Override
public String getBaseLoggerName() {
return baseLoggerName;
}
@Override
public LDLogAdapter getLogAdapter() {
return logAdapter;
}
@Override
public Duration getLogDataSourceOutageAsErrorAfter() {
return logDataSourceOutageAsErrorAfter;
}
}