Skip to content

A high performance Rust library for asynchronous logging

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE.md
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

WiSaGaN/fastlog

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.

About

A high performance Rust library for asynchronous logging

Topics

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE.md
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages