All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.launchdarkly.sdk.server.LoggingConfigurationImpl Maven / Gradle / Ivy

There is a newer version: 7.5.0
Show newest version
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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy