Skip to main content
Every sandbox records captured output to disk so you can read it later, even after the sandbox stops or crashes. Use msb logs <name> from the CLI or logs() from the SDK.

Read logs

The default output includes user-program stdout, stderr, and PTY output. Add system diagnostics when you need runtime or kernel logs:

Read from the SDK

Use log options to filter at read time:

Sources

Interactive sessions use a PTY, so stdout and stderr are merged before microsandbox receives them. Non-interactive exec calls keep the streams separate.

Diagnostic flows

Sandbox crashed
Sandbox will not start
Program produced no logs msb 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/: