tracing-web
A tracing compatible subscriber layer for web platforms.
Overview
tracing-web can be used in conjunction with the tracing-subscriber crate to quickly install a
subscriber that emits messages to the dev-tools console, and events to the Performance API. An example
configuration can look like
use ;
use Pretty;
use *;
Note: You can alternatively use .with_timer(UtcTime::rfc_3339()) with UtcTime on web targets if you enable
the wasm-bindgen feature of the time crate, for example by adding the following to your Cargo.toml.
= { = "0.3", = ["wasm-bindgen"] }
License
This project is dual licensed under the MIT license and the Apache license.