Skip to content

Commit 5d98a10

Browse files
feat(loguru): Add enable_logs=True to configure section (#15510)
Add the `enable_logs=True` argument to the Python SDK initialization in the configure section of the `loguru` integration documentation. The change should help users avoid missing logs, as by default, `loguru` logs are not captured as Sentry logs.
1 parent 50e60d4 commit 5d98a10

File tree

1 file changed

+2
-1
lines changed
  • docs/platforms/python/integrations/loguru

1 file changed

+2
-1
lines changed

docs/platforms/python/integrations/loguru/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ uv add "sentry-sdk[loguru]"
2121

2222
## Configure
2323

24-
If you have the `loguru` package in your dependencies, the Loguru integration will be enabled automatically when you initialize the Sentry SDK.
24+
If you have the `loguru` package in your dependencies, the Loguru integration will be enabled automatically when you initialize the Sentry SDK. To capture Loguru log records as [Sentry logs](/platforms/python/logs/), set `enable_logs` to `True`.
2525

2626
```python
2727
import sentry_sdk
@@ -31,6 +31,7 @@ sentry_sdk.init(
3131
# Add data like request headers and IP for users, if applicable;
3232
# see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
3333
send_default_pii=True,
34+
enable_logs=True,
3435
)
3536
```
3637

0 commit comments

Comments
 (0)