structlog breaking changes
structlog 26.1.0 (June 6, 2026) is its newest release with breaking changes, 7 of them. The first: structlog 26.1.0 drops support for Python 3.8 and 3.9. Every breaking API change we have recorded in structlog on PyPI: 28 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 26.1.0, released June 6, 2026. Source repository
Its 26.1.0 release drops Python 3.8 and 3.9. Python end of life dates.
- From 25.1.0 to 26.1.0: 7 breaking changes in 1 version.
- From 24.1.0 to 26.1.0: 26 breaking changes in 2 versions.
structlog 26.1.0 breaking changes
- Removed
Support for Python 3.8 and 3.9 ends in this release, so those interpreters are no longer supported. github.com - Behavior changed
structlog.dev.ConsoleRenderer
ConsoleRenderer no longer emits a warning when the exception key already holds a rendered value while a fancy formatter is configured. github.com - Behavior changed
structlog.processors.CallsiteParameterAdder
For async log methods, CallsiteParameterAdder now reports the calling thread's id and name instead of the executor pool thread, so logged values change. github.com - Signature changed
structlog.BytesLogger.__getstate__
Was def __getstate__(self) -> str; now def __getstate__(self) -> tuple[str, str | None]. pypi.org - Signature changed
structlog.BytesLogger.__init__
Was def __init__(self, file: BinaryIO | None = None); now def __init__(self, file: BinaryIO | None = None, *, name: str | None = None). pypi.org - Signature changed
structlog.dev.RichTracebackFormatter.__init__
Was def __init__(self, color_system: Literal['auto', 'standard', '256', 'truecolor', 'windows'] = 'truecolor', show_locals: bool = True, max_frames: int = 100, theme: str | None = None, word_wrap: bool = True, extra_lines: int = 3, width... pypi.org - Signature changed
structlog.dev.RichTracebackFormatter.color_system
Was color_system: Literal['auto', 'standard', '256', 'truecolor', 'windows']; now color_system: Literal['auto', 'standard', '256', 'truecolor', 'windows'] | None. pypi.org
structlog 25.1.0 breaking changes
- Behavior changed
FilteringBoundLogger.fatal
fatal() now maps to the critical level as in the standard library, so filtering and output for fatal calls change; use error() or critical() instead. github.com - Behavior changed
structlog.dev.ConsoleRenderer
String values with special characters are now quoted in console output, so code that parses or matches that output may need updating. github.com - Behavior changed
structlog.stdlib.recreate_defaults
recreate_defaults() now includes structlog.stdlib.PositionalArgumentsFormatter in the configuration it sets up. github.com - Signature changed
structlog.BoundLoggerBase.bind
Was def bind(self, **new_values: Any) -> BoundLoggerBase; now def bind(self, **new_values: Any) -> Self. pypi.org - Signature changed
structlog.BoundLoggerBase.new
Was def new(self, **new_values: Any) -> BoundLoggerBase; now def new(self, **new_values: Any) -> Self. pypi.org - Signature changed
structlog.BoundLoggerBase.try_unbind
Was def try_unbind(self, *keys: str) -> BoundLoggerBase; now def try_unbind(self, *keys: str) -> Self. pypi.org - Signature changed
structlog.BoundLoggerBase.unbind
Was def unbind(self, *keys: str) -> BoundLoggerBase; now def unbind(self, *keys: str) -> Self. pypi.org - Signature changed
structlog.contextvars.BindableLogger.bind
Was def bind(self, **new_values: Any) -> BindableLogger; now def bind(self, **new_values: Any) -> Self. pypi.org - Signature changed
structlog.contextvars.BindableLogger.new
Was def new(self, **new_values: Any) -> BindableLogger; now def new(self, **new_values: Any) -> Self. pypi.org - Signature changed
structlog.contextvars.BindableLogger.try_unbind
Was def try_unbind(self, *keys: str) -> BindableLogger; now def try_unbind(self, *keys: str) -> Self. pypi.org
And 9 more in this version. Sign up to see every change
structlog 24.1.0 breaking changes
- Behavior changed
RichTracebackFormatter
The width argument of RichTracebackFormatter was previously ignored and is now applied, so rendered traceback output changes for users who pass it. github.com - Behavior changed
structlog.stdlib.BoundLogger.exception
The displayed level name from BoundLogger.exception() is "error" again, reverting the 23.3.0 regression. Code that matched on "exception" in log output must be updated. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.