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 還沒有評估資料。