Module wasmer_c_api::tracing
source · Expand description
Utilities to set up tracing and logging.
By default, wasmer does not generate any tracing output. To
enable tracing, one must call the wasmer_setup_tracing()
function during the initialization stage of their program.
Tracing levels can be enabled/disabled using the RUST_LOG env var.
§Example
int main() {
// This can go up to 4, which is the most verbose
int verbosity_level = 0;
// Whether to use colors when logging information
int use_colors = 1;
wasmer_setup_tracing(verbosity_level, use_colors);
return 0;
}