3 unstable releases
1.0.0-rc.2 |
|
---|---|
1.0.0-alpha.9 |
|
1.0.0-alpha.8 |
|
1.0.0-alpha.6 |
|
0.1.1 | Feb 28, 2022 |
#104 in Rendering
23 downloads per month
Used in git-leave
29KB
549 lines
Label Logger
"A Cargo-like logging library."
Installation
This library is still under development and breaking API changes can happen at all time.
Add this to your Cargo.toml
label-logger = { git = "https://github.com/MrNossiom/label-logger", branch = "main" }
Usage
use label_logger::{info, log, success};
info!(label: "Compiling", "the program");
log!("information without label");
log!("more informations without label");
success!(label: "Finished", "the compilation");
The library also includes themes for dialoguer
(a library to prompt the user in the terminal) and indicatif
(to show nice progress bars).
See examples for more use-case.
Credits
- woobuc/sweep for the logging theme idea.
- rust-lang/log for macros inspiration.
Dependencies
~0.2–9MB
~54K SLoC