What problem does it solve?
Rust developers building Golem agents need a consistent way to emit debug, info, and error output that is captured by the platform and visible during development and debugging, without writing any logger initialization code.
Core Features & Use Cases
- Standard log crate macros: Use log::trace!, log::debug!, log::info!, log::warn!, and log::error! with no setup, since the golem-rust SDK initializes the logger automatically at agent startup.
- Structured key-value logging: Attach contextual key-value pairs (e.g., agent_id, operation) to log records via the log crate's kv feature, enabled by default in the template Cargo.toml.
- Live log streaming: View stdout, stderr, and log output with golem agent stream or during golem agent invoke.
- Use Case: While debugging a counter agent, add log::info!(agent_id = self.name, count = self.count; "counter incremented") and run golem agent stream to watch structured output in real time.
Quick Start
Add log macros to my Rust Golem agent and show me how to stream the agent's logs with the golem CLI.