---
title: "structlog 26.1.0 Breaking Changes on PyPI | Since.dev"
description: "What each structlog release removed, renamed or changed: 28 breaking changes in 3 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/structlog
last_updated: 2026-12-04
---

# 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

Latest version `26.1.0`, released June 6, 2026. [Source repository](https://github.com/hynek/structlog)

Its 26.1.0 release drops Python 3.8 and [3.9](https://since.dev/calendar/python/3.9.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [25.1.0](#v-25-1-0) to [26.1.0](#v-26-1-0): 7 breaking changes in 1 version.
- From [24.1.0](#v-24-1-0) to [26.1.0](#v-26-1-0): 26 breaking changes in 2 versions.

## structlog 26.1.0 breaking changes

structlog 26.1.0, released June 6, 2026: 7 breaking changes.

- **Removed**  

Support for Python 3.8 and 3.9 ends in this release, so those interpreters are no longer supported. [github.com](https://github.com/hynek/structlog/releases/tag/26.1.0)
- **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](https://github.com/hynek/structlog/releases/tag/26.1.0)
- **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](https://github.com/hynek/structlog/releases/tag/26.1.0)
- **Signature changed** `structlog.BytesLogger.__getstate__`  

Was def \_\_getstate\_\_(self) -> str; now def \_\_getstate\_\_(self) -> tuple\[str, str | None\]. [pypi.org](https://pypi.org/project/structlog/26.1.0/)
- **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](https://pypi.org/project/structlog/26.1.0/)
- **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](https://pypi.org/project/structlog/26.1.0/)
- **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](https://pypi.org/project/structlog/26.1.0/)

## structlog 25.1.0 breaking changes

structlog 25.1.0, released January 16, 2025: 19 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](https://github.com/hynek/structlog/releases/tag/25.1.0)
- **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](https://github.com/hynek/structlog/releases/tag/25.1.0)
- **Behavior changed** `structlog.stdlib.recreate_defaults`  

recreate_defaults() now includes structlog.stdlib.PositionalArgumentsFormatter in the configuration it sets up. [github.com](https://github.com/hynek/structlog/releases/tag/25.1.0)
- **Signature changed** `structlog.BoundLoggerBase.bind`  

Was def bind(self, \*\*new_values: Any) -> BoundLoggerBase; now def bind(self, \*\*new_values: Any) -> Self. [pypi.org](https://pypi.org/project/structlog/25.1.0/)
- **Signature changed** `structlog.BoundLoggerBase.new`  

Was def new(self, \*\*new_values: Any) -> BoundLoggerBase; now def new(self, \*\*new_values: Any) -> Self. [pypi.org](https://pypi.org/project/structlog/25.1.0/)
- **Signature changed** `structlog.BoundLoggerBase.try_unbind`  

Was def try_unbind(self, \*keys: str) -> BoundLoggerBase; now def try_unbind(self, \*keys: str) -> Self. [pypi.org](https://pypi.org/project/structlog/25.1.0/)
- **Signature changed** `structlog.BoundLoggerBase.unbind`  

Was def unbind(self, \*keys: str) -> BoundLoggerBase; now def unbind(self, \*keys: str) -> Self. [pypi.org](https://pypi.org/project/structlog/25.1.0/)
- **Signature changed** `structlog.contextvars.BindableLogger.bind`  

Was def bind(self, \*\*new_values: Any) -> BindableLogger; now def bind(self, \*\*new_values: Any) -> Self. [pypi.org](https://pypi.org/project/structlog/25.1.0/)
- **Signature changed** `structlog.contextvars.BindableLogger.new`  

Was def new(self, \*\*new_values: Any) -> BindableLogger; now def new(self, \*\*new_values: Any) -> Self. [pypi.org](https://pypi.org/project/structlog/25.1.0/)
- **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](https://pypi.org/project/structlog/25.1.0/)

And 9 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## structlog 24.1.0 breaking changes

structlog 24.1.0, released January 8, 2024: 2 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](https://github.com/hynek/structlog/releases/tag/24.1.0)
- **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](https://github.com/hynek/structlog/releases/tag/24.1.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
