12 releases (3 stable)
Uses old Rust 2015
| 1.1.1 | Jan 21, 2018 |
|---|---|
| 1.1.0 | Jan 18, 2018 |
| 1.0.0 | Nov 19, 2017 |
| 0.3.1 | Nov 19, 2017 |
| 0.1.3 | Feb 10, 2017 |
#105 in #simple
117 downloads per month
Used in 3 crates
16KB
73 lines
badlog
A garishly colored and extremely simple logger - the best kind.

Installation
[dependencies]
badlog = "1.1"
log = "0.4"
Usage
- Call one of the initializers.
- Use the standard log crate macros.
- That's it!
Example
#[macro_use] extern crate log;
extern crate badlog;
fn main() {
badlog::init_from_env("LOG_LEVEL");
trace!("Unimportant details.");
debug!("Debugging information.");
info!("Hello, World!");
warn!("Uh, captain, I think we're going down...");
error!("IT'S THE END.");
}
License
MIT.
Dependencies
~3–7MB
~115K SLoC