Function init

Source
pub fn init()
Expand description

Initialize logger with default settings

Examples found in repository?
examples/simple.rs (line 6)
3fn main() {
4    stdweb::initialize();
5
6    stdweb_logger::init();
7
8    error!("{} -> {}", "test1", 1);
9    warn!("{} -> {}", "test2", 2);
10    info!("{} -> {}", "test3", 3);
11    debug!("{} -> {}", "test4", 4);
12    trace!("{} -> {}", "test5", 5);
13
14    stdweb::event_loop();
15}