Skip to content

yewstack/web_logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

web_logger

Implements a logger that can be used in web browsers.

Usage

In libraries

Not required. Libraries should use the log crate instead.

In executables

It must be added along with log to the project dependencies:

[dependencies]
log = "0.4"
web_logger = "0.2"

web_logger must be initialized as early as possible in the project. After it's initialized, you can use the log macros to do actual logging.

#[macro_use]
extern crate log;
extern crate web_logger;

fn main() {
    web_logger::init();

    info!("starting up");

    // ...
}

About

Rust Logger for Web Browsers

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages