Class LDAndroidLogging

java.lang.Object
com.launchdarkly.sdk.android.LDAndroidLogging

public abstract class LDAndroidLogging extends Object
Allows LaunchDarkly log output to be sent directly to the native Android Log API.

By default, the SDK sends logging to Timber. If you want to bypass Timber and use Android logging directly instead, use this class with LDConfig.Builder.logAdapter(LDLogAdapter):


     LDConfig config = new LDConfig.Builder()
         .logAdapter(LDAndroidLogging.adapter())
         .build();
 

By default, debug-level logging is disabled and all other levels are enabled. To change this, use LDConfig.Builder.logLevel(LDLogLevel).

Since:
3.2.0
  • Constructor Details

    • LDAndroidLogging

      public LDAndroidLogging()
  • Method Details