Skip to content

Comments

Improve ConsoleRenderer ergonomics#749

Merged
hynek merged 2 commits intomainfrom
cr-helper
Oct 12, 2025
Merged

Improve ConsoleRenderer ergonomics#749
hynek merged 2 commits intomainfrom
cr-helper

Conversation

@hynek
Copy link
Owner

@hynek hynek commented Sep 12, 2025

structlog was always a production-first logging framework and everything console was just an afterthought. But it's become clear that the priorities of people isn't (always) structured server logs anymore.

I don't intend to compromise structlog's production qualities but I think it's worth it to treat the dev module differently from the rest of the package.


The goal for now is to:

  • give the users easy access to the currently configured ConsoleRenderer
  • Refactor ConsoleRenderer such that it can (ergonomically) mutated. Performance is not a big concern here.

I don't think it's necessary to solve all problems at once, but it would be good to tackle some of the biggest pain points.

@hynek hynek force-pushed the cr-helper branch 2 times, most recently from b30c3ec to 13d1435 Compare September 12, 2025 14:05
@hynek hynek force-pushed the cr-helper branch 3 times, most recently from 5880b1f to b642491 Compare October 1, 2025 10:28
@hynek hynek force-pushed the cr-helper branch 2 times, most recently from 7f5330c to 10b7628 Compare October 11, 2025 10:29
@hynek hynek marked this pull request as ready for review October 12, 2025 05:29
@hynek
Copy link
Owner Author

hynek commented Oct 12, 2025

@racinmat & @jonashaag this should be enough for your use-cases of disabling Rich formatting. If not, let me know.

I will merge this now and do other properties in separate PRs.

@hynek hynek merged commit d517cde into main Oct 12, 2025
20 checks passed
@hynek hynek deleted the cr-helper branch October 12, 2025 06:38
@racinmat
Copy link

Looks great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants