Conversation
vEpiphyte
reviewed
Jan 20, 2026
vEpiphyte
reviewed
Jan 20, 2026
vEpiphyte
reviewed
Jan 21, 2026
vEpiphyte
reviewed
Jan 21, 2026
…ting for events that will not trigger.
MichaelSquires
previously approved these changes
Apr 9, 2026
vEpiphyte
reviewed
Apr 9, 2026
MichaelSquires
previously approved these changes
Apr 10, 2026
vEpiphyte
previously approved these changes
Apr 10, 2026
OCBender
reviewed
Apr 10, 2026
OCBender
reviewed
Apr 10, 2026
OCBender
reviewed
Apr 10, 2026
OCBender
reviewed
Apr 10, 2026
Co-authored-by: OCBender <181250370+OCBender@users.noreply.github.com>
MichaelSquires
approved these changes
Apr 10, 2026
OCBender
approved these changes
Apr 10, 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.
Summary
Consolidate and modernize the Synapse logging infrastructure. Logging functionality previously scattered across
synapse/common.pyandsynapse/lib/structlog.pyis replaced by a dedicatedsynapse/lib/logging.pymodule with async-safe log pumping, structured output, and real-time log streaming APIs.synapse/lib/logging.pymodule withJsonFormatter,TextFormatter, asyncStreamHandler, and log lifecycle managementlogs()andwatch()admin APIs on all Synapse services for retrieving recent log entries and streaming live log eventsCell.getLogExtra()is now synchronous (no longer requiresawait)s_scopesynapse/lib/structlog.pyand logging helpers fromsynapse/common.py$lib.lift.tagsByPref()Storm API (SYN-10503)Key changes
synapse/lib/logging.pysetup(),shutdown(),reset(),logs(),watch(),getLogExtra(),setLogInfo(),excinfo(), formatters, async stream handlersynapse/lib/cell.pygetLogExtra()now sync, newlogs()/watch()admin APIs, logging setup vias_logging.setup(), service name registered globallysynapse/lib/view.pys_scope.enter()for user context,getLogExtra()for structured paramssynapse/common.pysetlogging(),normLogLevel(),_getLogConfFromEnv()and related importssynapse/lib/structlog.pysynapse/lib/logging.py)synapse/tests/utils.pyLoggerStreamwith asyncexpect()method and queue-based log capturedocs/synapse/devopsguide.rstEnvironment variables
SYN_LOG_LEVEL,SYN_LOG_STRUCT, andSYN_LOG_DATEFORMATcontinue to work as before.