Initialize the logger used by @wasmer/wasix.
@wasmer/wasix
This function can only be called once. Subsequent calls will raise an exception.
The filter string can be used to tweak logging verbosity, both globally or on a per-module basis, and follows the $RUST_LOG format.
filter
$RUST_LOG
Some examples:
off
error
warn
info
debug
trace
wasmer_wasix
info,wasmer_js::package_loader=trace
wasmer_js::package_loader
wasmer_js=debug/flush
wasmer_js
flush
warn,wasmer=info,wasmer_wasix::syscalls::wasi=trace
When no filter string is provided, a useful default will be used.
Optional
Generated using TypeDoc
Initialize the logger used by
@wasmer/wasix.This function can only be called once. Subsequent calls will raise an exception.
Filtering Logs
The
filterstring can be used to tweak logging verbosity, both globally or on a per-module basis, and follows the$RUST_LOGformat.Some examples:
off- turn off all logserror,warn,info,debug,trace- set the global log levelwasmer_wasix- enable logs forwasmer_wasixinfo,wasmer_js::package_loader=trace- set the global log level toinfoand setwasmer_js::package_loadertotracewasmer_js=debug/flush- turns on debug logging forwasmer_jswhere the log message includesflushwarn,wasmer=info,wasmer_wasix::syscalls::wasi=trace- directives can be mixed arbitrarilyWhen no
filterstring is provided, a useful default will be used.