Package com.launchdarkly.sdk.android
Class LDTimberLogging
- java.lang.Object
-
- com.launchdarkly.sdk.android.LDTimberLogging
-
public abstract class LDTimberLogging extends java.lang.Object
Allows LaunchDarkly log output to be forwarded to Timber.Currently this is the default logging implementation; in the future, we may change the default to
LDAndroidLogging
.When this logging implementation is active, the SDK will automatically call
Timber.plant(new Timber.DebugTree)
at initialization time if and only ifBuildConfig.DEBUG
is true. This behavior is for consistency with the default behavior of earlier SDK versions and may be removed in the future. It can be changed withLDTimberLogging.Adapter.autoPlantDebugTree(boolean)
.- Since:
- 3.2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LDTimberLogging.Adapter
A Timber implementation of theLDLogAdapter
interface.
-
Constructor Summary
Constructors Constructor Description LDTimberLogging()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LDLogAdapter
adapter()
-
-
-
Method Detail
-
adapter
public static LDLogAdapter adapter()
-
-