back
3 comments
You always need some boilerplate to get structlog working. I always use this (author) to have the needed defaults https://github.com/peakiq/logma.
I agree, structlog is such a quality of life improvement.

It can be tricky to forward all logs through it [0] but it's definitely worth it.

[0] https://www.structlog.org/en/stable/standard-library.html

https://github.com/jteppinette/python-logfmter

I made this library to make global structured logging in Python super easy.

Thank you so much for posting this. Very well designed library. I wish logging worked like this on every language.