Update dependency structlog to v26#209
Merged
Merged
Conversation
bobh66
approved these changes
Jun 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==25.*→==26.*Release Notes
hynek/structlog (structlog)
v26.1.0Compare Source
Removed
Deprecated
Use our Rich integration or copy-paste the one line of code you need.
#802
Added
Python 3.15 support.
#813
structlog.dev.rich_monochrome_tracebackfor Rich-based monochrome exception rendering and add support for it throughoutstructlog.dev.ConsoleRendererwhen the user asks for no colors.#794
structlog.BytesLoggernow has anameattribute which allows you to use it with thestructlog.stdlib.add_logger_name()processor without using the standard library integration.#786
structlog.processors.CallsiteParameterAddernow supportsCallsiteParameter.QUAL_MODULEthat adds the qualified import name of the module of the callsite, or__main__if the module is the entry point.This is only available for structlog-originated events since the standard library has no equivalent (except for the convention of setting the logger's name to
__name__).#812
structlog.stdlib.BoundLoggernow hasis_enabled_for()andget_effective_level()methods that are snake_case aliases for itsisEnabledFor()andgetEffectiveLevel()methods.This makes it more compatible with the native
structlog.typing.FilteringBoundLogger, so you can swap configurations without changing your call sites.#818
Changed
structlog.dev.ConsoleRendererdoes not warn anymore when theexceptionkey has a rendered value despite having a fancy formatter configured.#790
Fixed
structlog.BytesLogger,structlog.PrintLogger, andstructlog.WriteLoggernow hold weak references to the files they use for output.This prevents their leakage in long-running processes that open many logfiles, such as task executors that create a per-task
BytesLoggerorWriteLogger.#807
structlog.WriteLoggeris usable after unpickling.#787
structlog.processors.CallsiteParameterAddernow reports the calling thread's id and name for async log methods, instead of the thread from the executor pool that runs the underlying sync logger.#710
#805
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.