3.2.0
[3.2.0] - 2022-08-23
The purpose of this release is to introduce a new logging facade, com.launchdarkly.logging
, to streamline how logging works in LaunchDarkly Java and Android code.
Previously, the Android SDK always used Timber for logging. This sometimes led to conflicts with an application's separate use of Timber, as described in #88 and #147.
In this release, the default behavior is still to use Timber, but the logging facade can also be configured programmatically to do simple Android logging without Timber, or to forward output to another framework such as java.util.logging
, or to multiple destinations, or to capture output in memory. In a future major version release, the default behavior may be changed so that the SDK does not require Timber as a dependency.
Added:
- In
LDConfig.Builder
, the new methodslogAdapter
,logLevel
, andloggerName
, for the new logging capabilities mentioned above. - New class
LDTimberLogging
for configuring the SDK's Timber integration. - New class
LDAndroidLogging
for configuring the SDK to use the Android logging API without Timber.