A pretty, easy-to-use logger for Rust.
Branch: master
Clone or download
mercutiodesign and seanmonstar fix with_builder_1 example (#25)
Builder isn't a result since 8782240

This should fix CI builds.
Latest commit 27eaa2b Jan 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples fix with_builder_1 example (#25) Jan 21, 2019
src remove Result from formatted_builder function Dec 6, 2018
.appveyor.yml add travis and appveyor ci Feb 8, 2018
.gitignore init Oct 20, 2016
.travis.yml add travis and appveyor ci Feb 8, 2018
Cargo.toml v0.3.0 Dec 6, 2018
LICENSE-APACHE license Oct 20, 2016
LICENSE-MIT update license Feb 8, 2018
README.md v0.3.0 Dec 6, 2018
readme-example.png add image to readme Feb 8, 2018

README.md

pretty-env-logger

Crates.io Docs MIT/APACHE-2.0 Travis CI

A simple logger built on top off env_logger. It is configured via an environment variable and writes to standard error with nice colored output for log levels.

example output

Usage

Add the dependency to your Cargo.toml:

[dependencies]
log = "0.4"
pretty_env_logger = "0.3"

Add some usage to your application:

extern crate pretty_env_logger;
#[macro_use] extern crate log;

fn main() {
    pretty_env_logger::init();
    info!("such information");
    warn!("o_O");
    error!("much error");
}

Then run your app with the environmental variable set:

RUST_LOG=myapp=trace cargo run

License

Licensed under either of