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

Add a way for processors to run code after the line is logged

Open
#96 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reading the processor and logger flow in structlog to see where the rendered line is emitted and how processor results are passed along. The issue proposes a post-log hook that can access the logger call's result, but does not name files or tests. Done means a processor can emit content after the log line, including multiline request or response bodies.

Written by the indexing model from the issue text.

Description

enhancement

From IRC:

[14:08:07]  <underyx>	@hynek would it somehow be possible for a processor to print something after the rendered line is printed?
[14:08:19]  <underyx>	it seems impossible to me right now but maybe you know of a way
[14:08:44]  <underyx>	specifically I'd like to print multiline request/response bodies after the actually log line
[14:09:46]  <hynek>		underyx: yeah sadly it’s impossible because loggers run last.  we'd need some kind of post-log hook
[14:10:05]  <underyx>	can I open an issue for that or do you consider it out of scope?
[14:50:21]  <hynek>		I think that would be useful.  Maybe it should also get the result of the logger call
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.