Skip to content

feat: support structured logging#503

Open
adubovik wants to merge 3 commits into
developmentfrom
feat/structured-logging
Open

feat: support structured logging#503
adubovik wants to merge 3 commits into
developmentfrom
feat/structured-logging

Conversation

@adubovik

Copy link
Copy Markdown
Collaborator

Summary

Adds structured (JSON) logging support by migrating to aidial-sdk 0.38.0, which introduces configure_root_logger/LogConfig for configuring the root logger's format.

  • Bump aidial-sdk to 0.38.0.
  • Rewrite configure_loggers() in log_config.py to use the SDK's configure_root_logger/LogConfig instead of hand-rolled root logger setup, while preserving the existing health-check log filtering and per-logger level configuration.
  • Document the new DIAL_SDK_LOG_FORMAT / DIAL_SDK_TEXT_LOG_FORMAT / DIAL_SDK_JSON_LOG_FORMAT env vars in a new Logging section of the README.

To enable JSON logs:

DIAL_SDK_LOG_FORMAT=json

This is analogous to epam/ai-dial-adapter-bedrock#466, which added the same capability to the Bedrock adapter.

Test plan

  • make lint
  • make test
  • Manually verified both text and JSON log output via configure_loggers(), including that health-check request filtering still works

adubovik and others added 3 commits July 17, 2026 16:58
Migrate to aidial-sdk 0.38.0, which adds configure_root_logger/LogConfig
for structured logging. Set DIAL_SDK_LOG_FORMAT=json to switch from the
default text format to JSON.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

1 participant