getsentry / getsentry/sentry-python

Add an `ignore_loggers` kwarg to `LoggingIntegration`

Ouverte
#4,707 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Feature Integration: Logging Logs Python
Langage dominant
Python
Étoiles
2.2k
Forks
669
Merge moyen
1 j 1 h
PR mergées (30 j)
213

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 ())
```

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.