Crates.io | web_logger |
lib.rs | web_logger |
version | 0.2.0 |
source | src |
created_at | 2018-05-11 07:25:17.994013 |
updated_at | 2019-08-01 02:41:24.947593 |
description | A logger for logging in web-browsers |
homepage | https://github.com/DenisKolodin/web-logger |
repository | https://github.com/DenisKolodin/web-logger |
max_upload_size | |
id | 64811 |
size | 4,644 |
Implements a logger that can be used in web browsers.
Not required. Libraries should use the log
crate instead.
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");
// ...
}