Skip to content

Expose Core console log format - #1750

Open
Sushisource wants to merge 3 commits into
mainfrom
core-json-logging
Open

Expose Core console log format#1750
Sushisource wants to merge 3 commits into
mainfrom
core-json-logging

Conversation

@Sushisource

Copy link
Copy Markdown
Member

What was changed

Added LoggingFormat and LoggingConfig.format so applications can select compact, pretty, or newline-delimited JSON output for Core logs written to the console. The selected format is validated and passed through the Python bridge to Core.

Why?

Applications that ingest logs as structured data need Core to emit JSON directly instead of human-oriented text with ANSI formatting.

Checklist

  1. Closes [python] Allow configuring core tracing format #1732
  2. How was this tested:
    • poe format
    • poe build-develop
    • focused Pyright, mypy, basedpyright, and pydocstyle checks
    • cargo clippy --manifest-path temporalio/bridge/Cargo.toml -- -D warnings
    • uv run pytest tests/test_runtime.py::test_runtime_console_logging_format -q
  3. Any docs updates needed? Public API docstrings and the changelog are updated.

@Sushisource

Copy link
Copy Markdown
Member Author

For the curious, the default is None rather than compact b/c that preserves env-var based selection internally in core.

@Sushisource
Sushisource marked this pull request as ready for review August 14, 2026 21:20
@Sushisource
Sushisource requested a review from a team as a code owner August 14, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[python] Allow configuring core tracing format

1 participant