Add a structured logger and collector so runs can be traced across processes.
ci / vet-and-test (push) Successful in 4s
ci / docker-checkout-hostgateway (push) Successful in 2s

Sync and async sinks, redaction, and a queryable HTTP service keep concurrent logs tied to a trace id.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
weichen
2026-09-29 13:51:16 +00:00
co-authored by Cursor
commit bed0dbf076
31 changed files with 3078 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
{
"service": "agent-squad",
"level": "info",
"modules": { "engine": "debug", "server": "warn" },
"sinks": [
{ "type": "console", "format": "human", "level": "info" },
{
"type": "file",
"path": "logs/app.jsonl",
"format": "json",
"rotation": { "max_bytes": 104857600, "keep": 10 }
},
{
"type": "http",
"url": "http://127.0.0.1:8092/v1/logs",
"async": true,
"batch": { "max_entries": 200, "flush_interval_ms": 2000 }
}
],
"redaction": { "enabled": true, "extra_patterns": [] },
"trace": { "generate": true, "header": "X-Trace-Id" }
}