Debian Codegraph @

/

debian rust-pretty-env-logger 0.5.0-3debian librust-pretty-env-logger-dev debian librust-pretty-env-logger+default-dev debian librust-pretty-env-logger-0-dev debian librust-pretty-env-logger-0+default-dev debian librust-pretty-env-logger-0.5-dev debian librust-pretty-env-logger-0.5+default-dev debian librust-pretty-env-logger-0.5.0-dev debian librust-pretty-env-logger-0.5.0+default-dev cargo pretty_env_logger 0.5.0 debianjsonmakefilemarkdownrustrustrust-c-abishelltoml 16 files · 112 symbols
View dependency graph

Depends on

  • dh-cargo (dh-sequence-cargo)
  • rust-env-logger (librust-env-logger-0.11+default-dev)
  • rust-log (librust-log-0.4+default-dev)
  • cargo, debhelper-compat, libstd-rust-dev, rustc
README (full)

pretty-env-logger

Crates.io Docs MIT/APACHE-2.0 Travis CI

A simple logger built on top of 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.4"

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=trace cargo run

License

Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or http://apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
dir debian/
dir src/
file .cargo_vcs_info.json
file Cargo.lock
file Cargo.toml
file Cargo.toml.orig
file LICENSE-APACHE
file LICENSE-MIT
file README.md