The colog
library is a simple formatter backend for the standard
rust logging system (in the log
crate).
```rust
extern crate log; extern crate colog;
fn main() { drop(colog::init()); error!("error message"); error!("error with fmt: {}", 42); warn!("warn message"); info!("info message"); debug!("debug message"); trace!("trace message");
info!("multi line demonstration\nhere");
info!("more\nmulti\nline\nhere\nhere");
} ```
This results in the following terminal output:
The color and terminal handling could use a serious improvement, via one of the nice terminal crates available now.
Patches welcome :)
This project is licensed under the LGPLv3. See the file LICENSE for details.