mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 15:31:05 +08:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user