gateway: CLI 标准化(--host/--port/--config/--log-level/--instance + LogC 级别过滤)

- 新增 --host/--port 覆盖 [Server] address/port
- 新增 --config 覆盖 confs 拉取的配置名(默认 gateway.ini)
- 新增 --log-level debug|info|warn|error(LogC 加级别过滤)
- 新增 --instance 实例名(注册中心用)
- LogC.hpp: 新增 set_level() + push() 级别过滤(atomic 阈值,大写兼容)
- 配置优先级: CLI > ENV > confs > 默认值
- services.yaml: gateway 声明 --instance 和 --log-level
This commit is contained in:
qing committed 2026-08-10 11:55:54 +08:00
1 parent 4df510712e
commit 8eb14cad4a
3 files changed
+59 -3

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ services:
- name: gateway
cmd: bash /opt/micro_servers/gateway/_run.sh
args: []
args: ["--instance", "gateway", "--log-level", "info"]
depends_on: [db2]
sleep_before: 2