web_logger

Crates.ioweb_logger
lib.rsweb_logger
version0.2.0
sourcesrc
created_at2018-05-11 07:25:17.994013
updated_at2019-08-01 02:41:24.947593
descriptionA logger for logging in web-browsers
homepagehttps://github.com/DenisKolodin/web-logger
repositoryhttps://github.com/DenisKolodin/web-logger
max_upload_size
id64811
size4,644
Justin Starry (jstarry)

documentation

https://docs.rs/web-logger/

README

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.1"

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

    // ...
}
Commit count: 9

cargo fmt