structlog v20.1.0 Release Notes
Release Date: 2020-01-28 // about 4 years ago-
Backward-incompatible changes:
none
๐ Deprecations: ^
- ๐ This is the last version to support Python 2.7 (including PyPy) and 3.5. All following versions will only support Python 3.6 or later.
๐ Changes: ^
- โ Added a new module
structlog.contextvars
that allows to have a global but context-localstructlog
context the same way as withstructlog.threadlocal
since 19.2.0.#201 <https://github.com/hynek/structlog/issues/201>
,#236 <https://github.com/hynek/structlog/pull/236>
- โ Added a new module
structlog.testing
for first class testing support. The first entry is the context managercapture_logs()
that allows to make assertions about structured log calls.#14 <https://github.com/hynek/structlog/issues/14>
,#234 <https://github.com/hynek/structlog/pull/234>
- โ Added
structlog.threadlocal.unbind_threadlocal()
.#239 <https://github.com/hynek/structlog/pull/239>
_ - The logger created by
structlog.get_logger()
is not detected as an abstract method anymore, when attached to an abstract base class.#229 <https://github.com/hynek/structlog/issues/229>
_ - ๐
colorama
isn't initialized lazily on Windows anymore because it breaks rendering.#232 <https://github.com/hynek/structlog/issues/232>
,#242 <https://github.com/hynek/structlog/pull/242>