Package com.launchdarkly.sdk.android
Class LDAndroidLogging
java.lang.Object
com.launchdarkly.sdk.android.LDAndroidLogging
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 Summary
-
Method Summary
-
Constructor Details
-
LDAndroidLogging
public LDAndroidLogging()
-
-
Method Details
-
adapter
- Returns:
- an
LDLogAdapter
for Android logging
-