public final class LDSLF4J
extends java.lang.Object
This is implemented as a separate public class with the factory method
adapter(), rather than as a method of Logs, so that the rest
of the com.launchdarkly.logging package can be used even if SLF4J is not in
the classpath. Any application or library that uses this method is responsible for
making sure SLF4J is in the classpath; it is not listed as a transitive dependency
of this library.
With this integration, SLF4J is responsible for all other configuration in terms of specifying where the output actually goes and what log levels to enable. See SLF4J documentation for details.
| Modifier and Type | Method and Description |
|---|---|
static LDLogAdapter |
adapter()
Provides the
LDLogAdapter implementation for sending log output to SLF4J. |
public static LDLogAdapter adapter()
LDLogAdapter implementation for sending log output to SLF4J.
There are no configuration methods on the returned adapter, because SLF4J's behavior is controlled by its own configuration file and/or methods.