Skip to content

Commit 72c1a9d

Browse files
committed
chore: update README.md
1 parent 62dc1e5 commit 72c1a9d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,17 @@ client.get_boolean_flag("my-flag", False, flag_evaluation_options=options)
190190

191191
The OpenFeature SDK logs to the `openfeature` logger using the `logging` package from the Python Standard Library.
192192

193+
#### Logging Hook
194+
195+
The Python SDK includes a `LoggingHook`, which logs detailed information at key points during flag evaluation, using the `logging` package. 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".
196+
197+
```python
198+
from openfeature import api
199+
from openfeature.hook import LoggingHook
200+
201+
api.add_hooks([LoggingHook()])
202+
```
203+
193204
### Domains
194205

195206
Clients can be assigned to a domain.

0 commit comments

Comments
 (0)