This implements a minimal tracing subscriber for use in browser/webassembly. It allows you to use tracing in the browser to log as well as record timings for spans. At the time of writing it differs from tracing-wasm in the following ways.
error
, warn
, info
, debug
, and trace
mechanism to record logs.If the above features/restrictions do not appeal to you you may want to use tracing-wasm
instead.
```rust use tracingbrowsersubscriber; use wasmbindgen::prelude::wasmbindgen;
fn main() { tracingbrowsersubscriber::configureasglobal_default(); // Rest of our webassembly code goes here } ```