Skip to main content
All examples route user-facing output to stdout and SDK internal logs to stderr. SDK logging is off by default (LOG_ENABLE=false); set LOG_ENABLE=true and LOG_LEVEL when debugging. Source: examples/logs/

Output routing

Usage

From examples/:
Optional run footers: 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