Registry / testing / pytest-logging

pytest-logging

JSON →
library2015.11.4pypypi✓ verified 86d ago

Configures logging for pytest and allows tweaking the log level via command-line flags. Current version is 2015.11.4. The package has been in maintenance mode for years and is largely superseded by built-in pytest logging since pytest 3.3+.

pip install pytest-logging
INSTALL
IMPORT
SIG · PYTEST-LOGGING
P
pytest-logging
testingpythonv2015.11.4
Install
3.5s avg
Import
Disk
30MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2015.11.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 32.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.5s · import 0.000s · 33MB
30MB installed
● package 30MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pytest_logging
import pytest_logging
Commonly imported as a plugin; no manual import needed if installed.

Configure logging via pytest.ini and use --log-level flag. Note: built-in pytest logging is preferred.

# pytest.ini or setup.cfg [pytest] log_cli = true log_level = DEBUG # Then run tests with: pytest -s --log-level=DEBUG
Debug
Known issues
deprecatedpytest-logging is effectively deprecated; built-in pytest logging (pytest >=3.3) offers richer functionality. Consider using pytest's -o log_cli=true or log_cli_level.
fix
Remove pytest-logging and use pytest's built-in logging configuration.
affects: all
gotchaThe --log-level flag conflicts with pytest's built-in --log-cli-level; both may interfere.
fix
Use only one mechanism to avoid confusion.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'pytest_logging'
Old package expects installed plugin; sometimes missing from environment.
fix
pip install pytest-logging and ensure it's in the test environment.
AttributeError: module 'logging' has no attribute 'addLevelName'
In rare cases, this error appears due to incompatible Python version (log level manipulation).
fix
Update Python to 2.7+ or use built-in logging.
Upgrade
Version history
2015.11.4latest on PyPI · released Nov 4, 2015
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
pytest-logging — pip install pytest-logging · libregistry