Crates.io | woodpecker |
lib.rs | woodpecker |
version | 0.4.0 |
source | src |
created_at | 2017-04-24 23:42:53.430528 |
updated_at | 2017-06-19 22:28:50.112118 |
description | Fast and extensible logging for Rust |
homepage | https://github.com/niamster/woodpecker |
repository | https://github.com/niamster/woodpecker |
max_upload_size | |
id | 11892 |
size | 168,739 |
woodpecker
is a logging framework for Rust.
The goal is to have a fast, extensible and easy logging in Rust application.
The project is currently under development and doesn't provide a lot of features.
Although the basic feature logging is well supported!
The main feature is almost zero overhead if no filtering rules are defined and log is not produced.
Currently supported:
RUST_LOG
environment variableMost of the useful documentation can be gotten using rustdoc.
Check it out on docs.rs/woodpecker.
In Cargo.toml:
[dependencies]
woodpecker = "0.4"
In your main.rs
:
#[macro_use]
extern crate woodpecker;
use woodpecker as wp;
fn main() {
wp::init();
wp_set_level!(wp::LogLevel::INFO).unwrap();
info!("It's alive!");
}
See examples/basic.rs for the quick overview.
Woodpecker project is licensed under Apache-2.0 license.
Logo is licensed under Creative Commons Attribution (CC BY).
Sprockets for logo are provided by Jon Daiello and Ray Uribe from the Noun Project under Creative Commons Attribution (CC BY).