#async #log

fastlog

A high performance asynchronous logger

5 unstable releases

0.2.1 Nov 26, 2019
0.2.0 Feb 20, 2019
0.1.1 Jul 1, 2016
0.1.0 May 7, 2016
0.0.1 Apr 17, 2016

#272 in #log

Download history 7/week @ 2023-10-20 16/week @ 2023-10-27 14/week @ 2023-11-03 41/week @ 2023-11-10 19/week @ 2023-11-17 26/week @ 2023-11-24 15/week @ 2023-12-01 56/week @ 2023-12-08 50/week @ 2023-12-15 20/week @ 2023-12-22 13/week @ 2023-12-29 4/week @ 2024-01-05 33/week @ 2024-01-12 20/week @ 2024-01-19 58/week @ 2024-01-26 36/week @ 2024-02-02

151 downloads per month

MIT/Apache

11KB
169 lines

fastlog

crates.io Build Status Coverage Status

A high performance Rust library for asynchronous logging

Currently this is still a work in progress.

Usage

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.

Example

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.

Dependencies

~1–1.4MB
~22K SLoC