| Crates.io | tracing-browser-subscriber |
| lib.rs | tracing-browser-subscriber |
| version | 0.2.0 |
| created_at | 2022-07-20 22:13:10.273633+00 |
| updated_at | 2022-11-20 01:21:48.685825+00 |
| description | A tracing subscriber for the browser and webassembly |
| homepage | |
| repository | |
| max_upload_size | |
| id | 629201 |
| size | 15,409 |
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.
use tracing_browser_subscriber;
use wasm_bindgen::prelude::wasm_bindgen;
#[wasm_bindgen(start)]
fn main() {
tracing_browser_subscriber::configure_as_global_default();
// Rest of our webassembly code goes here
}