Crate wasm_logger
source ·Expand description
A simple logger for front end wasm web app.
If you use Rust 2015:
#[macro_use]
extern crate log;
extern crate wasm_logger;
Add the following line to the initialization code of your app:
wasm_logger::init(wasm_logger::Config::new(log::Level::Debug));
For more information about how to use loggers in Rust, see log.
Structs
Specifies what to be logged
Functions
Initialize the logger which the given config. If failed, it will log a message to the the browser console.