pretty-env-logger
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.
Usage
Add the dependency to your Cargo.toml
:
[]
= "0.4"
= "0.4"
Add some usage to your application:
extern crate pretty_env_logger;
extern crate log;
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)