getsentry / getsentry/sentry-python

Add an `ignore_loggers` kwarg to `LoggingIntegration`

オープン
#4,707 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
Feature Integration: Logging Logs Python
主要言語
Python
スター
2.2k
フォーク
669
平均マージ
1日 1時間
マージ済み PR(30日)
213

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。