Skip to content

Commit 7c5c706

Browse files
committed
better example, fix link
1 parent f866253 commit 7c5c706

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,17 @@ from loguru import logger
4343
def main():
4444
sentry_sdk.init(...) # same as above
4545
logger.info("Logging some info")
46+
logger.error("Logging an error")
4647

4748
main()
4849
```
4950

50-
This will capture the `INFO` level log and send it to Sentry logs.
51+
This will capture both logs and send them to Sentry Logs. Additionally, an error event will be created from the `ERROR`-level log. In addition to that, a breadcrumb will be created from the `INFO`-level log.
5152

5253

5354
## Behavior
5455

55-
As long as `enable_logs` is `True`, logs with a level of `INFO` and higher will be captured as Sentry logs. The threshold can be configured via the [`sentry_logs_level` option](#options) TODO LINK.
56+
As long as `enable_logs` is `True`, logs with a level of `INFO` and higher will be captured as Sentry logs. The threshold can be configured via the [`sentry_logs_level` option](#options).
5657

5758
Additionally, the Loguru integration will create an error event from all `ERROR`-level logs. This feature is configurable via the [`event_level` integration option](#options).
5859

0 commit comments

Comments
 (0)