0.5.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
MIT - MIT LicenseA 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.
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
Licensed under either of