[][src]Function wasm_logger::init

pub fn init(config: Config)

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"));