refactor(log): unify Go logging to zap with rotation, strip per-package levels (#16261)

Refactor the Go agent port's logging so every log line — gin access,
agent canvas events, harness warnings, fatal boot errors — flows through
a single common.Logger (zap) backed by a rotated file, with structured
fields, level filtering, and configurable rotation.

---------

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Zhichang Yu
2026-06-23 16:21:46 +08:00
committed by GitHub
parent 11e14a8353
commit 2362210caf
29 changed files with 618 additions and 364 deletions

View File

@@ -177,3 +177,11 @@ user_default_llm:
# secret_id: '${TENCENT_SECRET_ID}'
# secret_key: '${TENCENT_SECRET_KEY}'
# region: '${TENCENT_REGION}'
# log:
# level: info # debug | info | warn | error
# format: text # text | json (reserved; text only today)
# path: server_main.log # empty/missing = binary default (server_main.log / admin_server.log / ingestion_server.log)
# max_size: 100 # MB before rotation
# max_backups: 10 # retained rotated files
# max_age: 30 # days
# compress: true # gzip rotated files; default true. Set false to disable.