# Logging output not captured: Captured logs are not displayed in the test report even with -s flag

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

## Root Cause

Logging is configured at the root level without a handler that pytest can capture, or the caplog fixture is not used.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   def test_logging(caplog):
    with caplog.at_level(logging.DEBUG):
        function_that_logs()
    assert 'Expected log' in caplog.text
   ```
2. **** (90% success)
   ```
   [pytest]
log_cli = true
log_level = DEBUG
   ```

## Dead Ends

- **** — This configures logging globally but may not integrate with pytest's capture mechanism. (70% fail)
- **** — Print statements are captured, but logging is not, so the problem remains. (80% fail)
