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
filter
string can be used to tweak logging verbosity, both globally or on a per-module basis, and follows the$RUST_LOG
format.Some examples:
off
- turn off all logserror
,warn
,info
,debug
,trace
- set the global log levelwasmer_wasix
- enable logs forwasmer_wasix
info,wasmer_js::package_loader=trace
- set the global log level toinfo
and setwasmer_js::package_loader
totrace
wasmer_js=debug/flush
- turns on debug logging forwasmer_js
where the log message includesflush
warn,wasmer=info,wasmer_wasix::syscalls::wasi=trace
- directives can be mixed arbitrarilyWhen no
filter
string is provided, a useful default will be used.