Skip to content

Commit 3e731da

Browse files
author
LaunchDarklyReleaseBot
committed
Releasing version 2.7.0
1 parent 44ebdb5 commit 3e731da

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
All notable changes to the LaunchDarkly EventSource implementation for Java will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [2.7.0] - 2022-08-02
6+
The main purpose of this release is to introduce a new logging facade, [`com.launchdarkly.logging`](https://github.com/launchdarkly/java-logging), to streamline how logging works in LaunchDarkly Java and Android code. Previously, `okhttp-eventsource` used SLF4J for logging by default, but could be made to send output to a `Logger` interface of its own; the LaunchDarkly Java SDK used only SLF4J, so developers needed to provide an SLF4J configuration externally; and the LaunchDarkly Android SDK used Timber, but still brought in SLF4J as a transitive dependency of `okhttp-eventsource`. In this release, the default behavior is still to use SLF4J, but the logging facade can also be configured programmatically to do simple console logging without SLF4J, or to forward output to another framework such as `java.util.logging`, or other destinations. In a future major version release, the default behavior will be changed so that `okhttp-eventsource` does not require SLF4J as a dependency.
7+
8+
### Added:
9+
- An overload of `EventSource.Builder.logger()` that takes a `com.launchdarkly.logging.LDLogger` instead of a `com.launchdarkly.eventsource.Logger`.
10+
11+
### Deprecated:
12+
- The overload of `EventSource.Builder.logger()` that takes a `com.launchdarkly.eventsource.Logger`.
13+
- `EventSource.Builder.loggerBaseName()`: this method was only relevant to the default behavior of using SLF4J, providing a way to customize what the logger name would be for SLF4J. But when using the new framework, the logger name is built into the `LDLogger` instance. For example (having imported the `com.launchdarkly.logging` package): `builder.logger(LDLogger.withAdapter(LDSLF4J.adapter(), "my.desired.logger.name"))`
14+
515
## [2.6.2] - 2022-07-27
616
### Changed:
717
- Updated OkHttp dependency to v4.9.3 to get [recent fixes](https://square.github.io/okhttp/changelogs/changelog_4x/), including a security fix.

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=2.6.2
1+
version=2.7.0
22
ossrhUsername=
33
ossrhPassword=
44

0 commit comments

Comments
 (0)