pytest-logbook is a py.test plugin that captures Logbook log messages during test execution, making them available in test reports. The current version is 1.2.0, released with an irregular cadence.
pip install pytest-logbookNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: use the log_level fixture to set the logging level for a test.
Use pytest-catchlog or the built-in caplog fixture for stdlib logging.
Pass 'log_level' as a parameter to each test function that needs it.
Use the log_level fixture instead of the CLI option.
pip install logbook
pip install pytest-logbook and rely on pytest's plugin discovery; do not import manually.
Ensure the log_level fixture is used and the logger is from logbook, not stdlib.
No dependency data recorded yet.