# logging.Handler: 'caplog' fixture requires 'logging' plugin, but logging is not configured

- **ID:** `python/pytest-capture-logging-handler`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

pytest的caplog fixture需要pytest的logging插件，如果插件被禁用或未安装，就会报错。

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 7.x | active | — | — |
| 8.x | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   pip install pytest-logging
# 在pytest.ini中添加
[pytest]
log_cli = true
   ```
2. **** (80% success)
   ```
   [pytest]
addopts = -p no:logging
   ```

## Dead Ends

- **** — 问题不是pytest未安装，而是插件未启用 (50% fail)
- **** — caplog是pytest内置的，手动配置不会影响pytest的捕获 (70% fail)
