import logging def main(): sentry_sdk.init(...) # same as above logging.debug("I am ignored") logging.info("I am a breadcrumb") logging.error("I am an event", extra=dict(bar=43)) logging.exception("An exception happened") main() There will be an error event with the message "I am an event"."I am a breadcrumb" will be attached as a breadcrumb to that event.bar will end up in the event's extra attri
![Logging | Sentry for Python](https://cdn-ak-scissors.b.st-hatena.com/image/square/22a051cd9e09b365161b18cc9b7f9a0ca13a8781/height=288;version=1;width=512/https%3A%2F%2Fsentry-docs-amow6b5bc.sentry.dev%2Fmeta.jpg)