Repository navigation
First release.
Drives SLF4J log levels from LaunchDarkly feature flags, so a running service can change its own verbosity without a restart or a deploy. Levels are applied to the real loggers rather than through a wrapper, so every existing LoggerFactory.getLogger(...) call responds — including loggers captured in static final fields before the client existed. No call sites change.
Backends. Logback, Log4j 2 and java.util.logging are detected at runtime. Anything else needs one small LogLevelBridge, supplied via the builder or registered as a ServiceLoader service.
Flags. Two, matching the conventions the React logger established so one pair can drive a browser app and a Java service:
| Flag | Type | Values |
|---|---|---|
console-log-level |
number | 0–5 (FATAL=0 … TRACE=5) |
sdk-log-level |
string | error, warn, info, debug |
Installing.
dependencies {
implementation("io.github.bradbunce:launchdarkly-java-logger:1.0.0")
implementation("com.launchdarkly:launchdarkly-java-server-sdk:7.16.0")
runtimeOnly("ch.qos.logback:logback-classic:1.6.3")
}Maven Central is the canonical home - consumers just add the dependency, no authentication needed. Releases also go to GitHub Packages, though it requires authentication even for public artifacts and so is not a practical distribution channel.
See CHANGELOG.md for details, the README for usage, and launchdarkly-java-demo-app for a runnable sample that needs no credentials.