msb logs <name> from the CLI or logs() from the SDK.
Read logs
stdout, stderr, and PTY output. Add system diagnostics when you need runtime or kernel logs:
Read from the SDK
Sources
| Source | Meaning |
|---|---|
stdout | Captured from a non-interactive session’s stdout |
stderr | Captured from a non-interactive session’s stderr |
output | Captured from a PTY session, where stdout and stderr are merged |
system | Lifecycle markers plus runtime and kernel diagnostics |
exec calls keep the streams separate.
Diagnostic flows
Sandbox crashedmsb create only boots a sandbox. Run something with msb run, msb exec, or an SDK exec call to produce user-program output.
On disk
Sandbox logs live under<sandbox-dir>/logs/:
| File | Contents |
|---|---|
exec.log | User-program output as JSON Lines |
runtime.log | Sandbox runtime diagnostics |
kernel.log | Guest kernel and agent console output |
boot-error.json | Structured startup failure details, when boot fails early |