LOG_LEVEL without changing code.
Source: examples/logs/
Output routing
| Output | Destination |
|---|---|
| User prompt and assistant reply | stdout |
| SDK internal logs | stderr |
Usage
Fromexamples/:
| Variable | Default | Description |
|---|---|---|
LOG_LEVEL | error | debug, info, warn, error |
SHOW_LLM_USAGE=true, SHOW_TELEMETRY=true — see Running Examples.
For OTLP log export, see Observability. For file logging in the REPL, see CLI.
Learn more
Logs
SDK logging and OTLP export
Telemetry
Per-run telemetry footers