feat(refactoring): Support Structured Logging (JSON) (#30170)

This commit is contained in:
Byron.wang
2026-01-03 19:46:46 -08:00
committed by GitHub
parent 822374eca5
commit 5362f69083
24 changed files with 1193 additions and 113 deletions

View File

@@ -587,6 +587,11 @@ class LoggingConfig(BaseSettings):
default="INFO",
)
LOG_OUTPUT_FORMAT: Literal["text", "json"] = Field(
description="Log output format: 'text' for human-readable, 'json' for structured JSON logs.",
default="text",
)
LOG_FILE: str | None = Field(
description="File path for log output.",
default=None,