getsentry / getsentry/sentry-python
Add an `ignore_loggers` kwarg to `LoggingIntegration`
未关闭
Feature
Integration: Logging
Logs
Python
- 主要语言
- Python
- 星标
- 2.2k
- 派生
- 669
- 平均合并
- 1 天 40 分钟
- 30 天内合并 PR
- 212
描述
### 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 还没有评估数据。