Crate wasm_logger

source ·
Expand description

A simple logger for front end wasm web app.

For more information about how to use loggers in Rust, see log.

    #[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));

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.