feat: 接入 LogHive 远程日志系统
- 添加 LogHiveHandler,启动时自动挂载到 root logger - 所有 logging 日志自动异步发送到 LogHive,不影响主业务 - vendored loghive-client 包,Docker 构建时自动安装 - API Key 缺失时自动跳过,不影响本地开发
This commit is contained in:
@@ -33,6 +33,11 @@ class Settings(BaseSettings):
|
||||
scheduler_enabled: bool = True
|
||||
scheduler_cron: str = "0 8-21 * * *"
|
||||
|
||||
# LogHive 日志系统
|
||||
loghive_endpoint: str = "http://10.10.10.14:8000"
|
||||
loghive_project: str = "gx-gp-notify"
|
||||
loghive_api_key: str = ""
|
||||
|
||||
# Markdown
|
||||
markdown_enabled: bool = True
|
||||
markdown_output_file: str = "onu.md"
|
||||
|
||||
Reference in New Issue
Block a user