You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8
Original file line number
Diff line number
Diff line change
@@ -218,6 +218,14 @@ Once you've added a hook as a dependency, it can be registered at the global, cl
218
218
### Logging
219
219
220
220
The Java SDK uses SLF4J. See the [SLF4J manual](https://slf4j.org/manual.html) for complete documentation.
221
+
Note that in accordance with the OpenFeature specification, the SDK doesn't generally log messages during flag evaluation.
222
+
223
+
#### Logging Hook
224
+
225
+
The Java SDK includes a `LoggingHook`, which logs detailed information at key points during flag evaluation, using SLF4J's structured logging API.
226
+
This hook can be particularly helpful for troubleshooting and debugging; simply attach it at the global, client or invocation level and ensure your log level is set to "debug".
227
+
228
+
See [hooks](#hooks) for more information on configuring hooks.
ArgumentMatchers.contains("Unable to correctly evaluate flag with key"),
275
+
Mockito.verify(logger, never()).error(
276
+
any(String.class),
278
277
any(),
279
-
ArgumentMatchers.isA(FlagNotFoundError.class));
278
+
any());
280
279
}
281
280
282
281
@Specification(number="1.2.2", text="The client interface MUST define a metadata member or accessor, containing an immutable domain field or accessor of type string, which corresponds to the domain value supplied during client creation. In previous drafts, this property was called name. For backwards compatibility, implementations should consider name an alias to domain.")
0 commit comments