pytest-dev / pytest-dev/pytest

allow logger specific level configuration for the logfile option

Open
#7,417 5 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plugin: logging type: enhancement type: proposal
Dominant language
Python
Stars
14.5k
Forks
3.4k
Avg merge
2d 9h
Merged PRs (30d)
35

Description

while configuring log file level to debug,
it seems that some libraries generate massive amounts of logging data thats not necessarily helping the intent but bloats the logfile
in turn making both debugging harder and storage more expensive

it would be a great help to have a way to pass in a logging configuration where different loggers get different levels

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing pytest's logfile option and the existing logging configuration behavior. Define how callers would provide different levels for different loggers, then verify that the resulting logfile filters noisy libraries while retaining the requested debug output.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.