feat: 接入 LogHive 远程日志系统

- 添加 LogHiveHandler,启动时自动挂载到 root logger
- 所有 logging 日志自动异步发送到 LogHive,不影响主业务
- vendored loghive-client 包,Docker 构建时自动安装
- API Key 缺失时自动跳过,不影响本地开发
This commit is contained in:
2026-05-09 19:14:45 +08:00
parent 1f18d2ec87
commit 2996920277
10 changed files with 583 additions and 1 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
rm -rf /var/lib/apt/lists/*
COPY pyproject.toml .
RUN pip install --no-cache-dir -e ".[dev]"
COPY vendor/ vendor/
RUN pip install --no-cache-dir -e ".[dev]" && pip install --no-cache-dir ./vendor/
COPY . .