2 releases
0.1.1 | Nov 20, 2021 |
---|---|
0.1.0 | Nov 20, 2021 |
#3 in #modularity
5KB
84 lines
Bouquin
Description
Adds a few functions to log things with style.
The focus of this library is on ease of use and modularity.
Disclaimer
Bouquin is intended to be used by small projects as a time saver and doesn't do much.
You might find better alternatives by searching a bit more.
Usage
use bouquin::prelude::*;
fn main () {
log_info("lorem ipsum");
log_warn("dolor amit");
let a = 420;
log_error(format!("caused by: '{}'", a));
}
Todo
For now, the crate doesn't do much, but plans are:
- Add macros to define custom behavior for log calls.
- Add configuration to write logs on disk in background and a way to avoid having one static Logger.
- Implement a convenient way to add and organize channels (error / info / warn).
Dependencies
~1–11MB
~61K SLoC