Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Ignore frames in `_FixedFindCallerLogger`

Open
#602 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by reading structlog.stdlib.LoggerFactory and _FixedFindCallerLogger, especially how the logger class handles caller frames and stacklevel. Compare that behavior with the standard library’s logging stack level handling. Done means agreeing on an approach and supporting configurable ignored frames or correctly passing and handling stacklevel; the issue names no tests to run.

Written by the indexing model from the issue text.

Description

enhancement stdlib

Hi y'all,

I'm currently writing a wrapper for the standard logger to make the log calls look a certain way.

The problem is that my wrapper ends up in the stack trace when adding information like line number / calling module to the log.

The standard library allows fixing this by increasing the stack level:

logger = logging.getLogger()
logger.info("Hi, stacklevel=2)

Structlog does something similar when providing the parameter "ignore_frame_names" for the structlog.stdlib.LoggerFactory. Problem is that the LoggerFactory sets a LoggerClass which ignores the stacklevel number and which is not parametrizable.

it would be great if the ignored frames could be changed without overriding stuff or (probably the better solution) the stacklevel param would be passed on and handled correctly.

Happy to contribute once we agree on a solution!

Dominant language
Python
Stars
5k
Forks
302
Avg merge
17m
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from hynek/structlog

All issues in hynek/structlog

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.