wasm_logger

Function init

Source
pub fn init(config: Config)
Expand description

Initialize the logger which the given config. If failed, it will log a message to the the browser console.

ยงExamples

wasm_logger::init(wasm_logger::Config::new(log::Level::Debug));

or

wasm_logger::init(wasm_logger::Config::with_prefix(log::Level::Debug, "some::module"));