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