Skip to content

Expose Core console log format - #1750

Draft
Sushisource wants to merge 1 commit into
mainfrom
core-json-logging
Draft

Expose Core console log format#1750
Sushisource wants to merge 1 commit 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.

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