• [Python-announce] structlog 22.2.0

    From Hynek Schlawack@21:1/5 to All on Sat Nov 19 14:35:11 2022
    I’m happy to announce a new release of structlog!

    With more than 4 million downloads per month, structlog is the best solution for production-ready structured logging in Python. It doesn’t just allow you to log key-value pairs in a structured manner, it also makes it EASIER and FASTER. Check out <
    https://www.structlog.org/en/stable/why.html> if you’re intrigued but not convinced!

    ---

    This is another (too) big release, but before I go into new features, allow me to beg you to check out structlog's documentation: <https://www.structlog.org/>.

    I've spent easily half of the time on bringing is up to date, restructuring, and adding usage recipes. Not new in this release, but did you know that the standard library chapter has flowcharts that give you as visual explanations of how the various
    methods work? This is usually the biggest sticking point when starting to use structlog.

    Feature-wise the big thing is that structlog's internal (and extremely fast) loggers (the one created using structlog.make_filtering_bound_logger() got two new features that people have asked for forever:

    1. String interpolation: log.info("hello %s!", "world") works now!
    2. Async! Each logging method has an async version: await log.ainfo("hello %s!", "world") is the same thing as above, but async.

    Special Thanks

    This release would not be possible without my generous sponsors! Thank you to all