feat: add logger

This commit is contained in:
tao.chen
2026-08-12 12:43:31 +08:00
parent 3981c32781
commit 416ff4d06a
8 changed files with 381 additions and 6 deletions
+9
View File
@@ -60,6 +60,15 @@ class Settings(BaseSettings):
description="Service label surfaced in lifespan / health checks.",
)
# ── logging ───────────────────────────────────────────────────
log_level: str = Field(
default="DEBUG",
description=(
"loguru stderr sink level. One of DEBUG/INFO/WARNING/ERROR/CRITICAL; "
"anything else falls back to INFO inside configure_logging()."
),
)
# ── runtime container endpoint ───────────────────────────────
runtime_api_url: str = Field(
default="http://runtime:8000",