Crates.io | fastlog |
lib.rs | fastlog |
version | 0.2.1 |
source | src |
created_at | 2016-04-17 08:17:50.300361 |
updated_at | 2019-11-26 12:31:38.646871 |
description | A high performance asynchronous logger |
homepage | |
repository | https://github.com/WiSaGaN/fastlog.git |
max_upload_size | |
id | 4775 |
size | 29,985 |
A high performance Rust library for asynchronous logging
Currently this is still a work in progress.
Fastlog requires a minimum rustc version of 1.32.0.
To use fastlog, first add this to your Cargo.toml
;
[dependencies]
fastlog = "0.2"
log = "0.4"
Then, add this to your crate root:
extern crate fastlog;
#[macro_use]
extern crate log
Finally initialize the logger, and use it like any other log implementation.
extern crate fastlog;
#[macro_use]
extern crate log;
fn main() {
fastlog::LogBuilder::new().build().unwrap().init().unwrap();
info!("Hello, world.");
log::logger().flush();
}
More examples can be found under examples
directory.