The base fields
- timestamp
- level
- agent
- session_id
- turn
- trace_id
- span_id
Advertisement
Log with fields
log.info("tool_called",
kv("tool", name),
kv("args", redact(args)),
kv("latency_ms", ms));Advertisement
Redaction
Never log raw prompts or user PII. Wrap with a redactor that hashes / masks.