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
the [OpenFeature Python SDK](https://openfeature.dev/docs/tutorials/getting-started/python), that can be
66
+
used to resolve feature flag values from the Confidence platform.
67
+
68
+
To learn more about the basic concepts (flags, targeting key, evaluation contexts),
69
+
the [OpenFeature reference documentation](https://openfeature.dev/docs/reference/intro) can be
70
+
useful.
71
+
72
+
73
+
## Logging
74
+
75
+
The SDK includes built-in logging functionality to help with debugging and monitoring. By default, the SDK creates a logger named `confidence_logger` that outputs to the console with DEBUG level logging enabled.
76
+
77
+
### Default logging behavior
78
+
79
+
When you create a Confidence client without specifying a logger, debug-level logging is automatically enabled:
80
+
81
+
```python
82
+
from confidence.confidence import Confidence
83
+
84
+
# Debug logging is enabled by default
85
+
confidence = Confidence("CLIENT_TOKEN")
86
+
```
87
+
88
+
This will output log messages such as flag resolution details, error messages, and debug information to help troubleshoot issues.
89
+
90
+
### Using a custom logger
91
+
92
+
You can provide your own logger instance to customize the logging behavior:
93
+
94
+
```python
95
+
import logging
96
+
from confidence.confidence import Confidence
97
+
98
+
# Create a custom logger with INFO level (less verbose)
The SDK includes telemetry functionality that helps monitor SDK performance and usage. By default, telemetry is enabled and collects metrics (anonymously) such as resolve latency and request status. This data is used by the Confidence team to improve the product, and in certain cases it is also available to the SDK adopters.
0 commit comments