{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/4"}],"enrichment":{"capability":"Pytest-logger is a pytest plugin that configures Python logging handlers to capture and display logs from named loggers during test execution, routing output to both the terminal and per-logger files.","skillfed_tags":["logging","pytest-plugin","test-debugging"],"use_cases":["Debugging test failures by reviewing per-logger log files organized by test name and logger","Selectively enabling verbose logging for specific loggers during test runs via command-line flags","Capturing logs from library code and fixtures without polluting the main pytest output stream","Archiving test logs on a per-logger basis for post-test analysis and troubleshooting"],"what_it_does":"Pytest-logger extends pytest with structured logging capture for individual named loggers. Instead of pytest's built-in log capture, it lets you configure which loggers to monitor, at what level, and routes their output to both stdout (during test runs) and to separate files organized by test and logger name in a session directory. You set it up via pytest hooks in conftest.py, naming the loggers you care about and their default output levels, then control which loggers appear during a test run using command-line options like `--log foo,bar.debug`.\n\nThe plugin is useful when your code or test fixtures use Python's standard logging module and you want fine-grained control over which log streams appear in test output and where they're stored. It organizes logs by test and logger name on disk, making it easy to review detailed logs for specific tests without cluttering the main test output.","worth_installing":"Yes. It has low install friction (pytest-only dependency), active maintenance, permissive MIT license, no known vulnerabilities, and solves a real problem for teams using Python logging in tests. Install it if you need structured per-logger log capture and file organization during pytest runs."},"id":"pytest-logger","links":{"html":"https://skillfed.io/packages/pytest-logger","md":"https://skillfed.io/packages/pytest-logger.md","pypi":"https://pypi.org/project/pytest-logger/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-03-10","license_spdx":null,"license_treatment":"permissive","name":"pytest-logger","python_support":"unspecified","summary":"Plugin configuring handlers for loggers from Python logging module."},"popularity":{"monthly_downloads":257462,"position":8446,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.1"}
