getsentry / getsentry/sentry-python

Add an `ignore_loggers` kwarg to `LoggingIntegration`

Open
#4,707 3 comments 0 reactions 0 assignees View on GitHub
Feature Integration: Logging Logs Python
Dominant language
Python
Stars
2.2k
Forks
669
Avg merge
1d 40m
Merged PRs (30d)
212

Description

### Problem Statement

It's simply more convenient to have a kwarg for this, instead of having to call `ignore_logger()` multiple times 🙂

### Solution Brainstorm

```python
class LoggingIntegration(Integration):
def __init__(
self,
...,
ignore_loggers=None,
):
...
# --- Either: ---
for logger in ignore_loggers or ():
ignore_logger(logger)
# --- Or: ---
_IGNORED_LOGGERS.update(ignore_loggers or ())
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.