"""Configuration for the admin-only external log-system entry. A small read-only section in ``config.yaml`` that lets a deployment point the "日志系统" entry (shown in the bottom-right settings menu for admins) at an external log/observability system. The URL is opened in a new browser tab. """ from __future__ import annotations from pydantic import BaseModel, Field class LogSystemConfig(BaseModel): """External log-system link surfaced in the admin settings menu.""" enabled: bool = Field(default=False, description="Whether the log-system entry is shown in the settings menu") url: str = Field(default="", description="External log-system URL opened in a new tab when the entry is clicked") label: str = Field(default="日志系统", description="Menu label shown for the entry")