getsentry / getsentry/sentry-python
Add an `ignore_loggers` kwarg to `LoggingIntegration`
オープン
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 はまだ評価されていません。