You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow specifying guest trace level for different modules #1269
We currently have a single trace level for everything inside the guest (all the modules).
We currently have no way to specify a trace level for the guest but a different one for the host (for the same module).
I'll make a separate issue to tackle this.
This is possible to imply a change of API for the entrypoint.
Moreover, we should think of a way to do this per guest call, because going forward, taking a snapshot after creation means the trace level cannot be changed afterwards.
The guest level is set separately from the host with SandboxBuilder::guest_log_level and Sandbox::log_level. It no longer depends on RUST_LOG.
The level can change after a snapshot. Sandbox::log_level applies to future guest calls, and restore() reapplies it. Calling it before a call gives per-call control. The entrypoint API did not change.
Not covered: per-module guest levels. The guest gets one level for all modules. Supporting directives like my_guest::net=trace,warn means sending a variable-length filter to the guest, which today receives a single u64 in scratch memory
Activity
simongdavies commentedon Mar 11, 2026
Linked to #1268
ludfjig commentedon Oct 22, 2026
#1833 covers most of this:
SandboxBuilder::guest_log_levelandSandbox::log_level. It no longer depends onRUST_LOG.Sandbox::log_levelapplies to future guest calls, andrestore()reapplies it. Calling it before a call gives per-call control. The entrypoint API did not change.Not covered: per-module guest levels. The guest gets one level for all modules. Supporting directives like
my_guest::net=trace,warnmeans sending a variable-length filter to the guest, which today receives a singleu64in scratch memory