Integrations

TBD

Logging

sentry_sdk.integrations.logging.ignore_logger(name)[source]

This disables recording (both in breadcrumbs and as events) calls to a logger of a specific name. Among other uses, many of our integrations use this to prevent their actions being recorded as breadcrumbs. Exposed to users as a way to quiet spammy loggers.

Parameters:

name (str) – The name of the logger to ignore (same string you would pass to logging.getLogger).

Return type:

None

class sentry_sdk.integrations.logging.EventHandler(level=0)[source]

A logging handler that emits Sentry events for each log record

Note that you do not have to use this class if the logging integration is enabled, which it is by default.

class sentry_sdk.integrations.logging.BreadcrumbHandler(level=0)[source]

A logging handler that records breadcrumbs for each log record.

Note that you do not have to use this class if the logging integration is enabled, which it is by default.