| Crates.io | advise |
| lib.rs | advise |
| version | 0.1.0 |
| created_at | 2024-04-21 04:00:01.390414+00 |
| updated_at | 2024-04-21 04:00:01.390414+00 |
| description | User-friendly status reporting |
| homepage | |
| repository | https://github.com/kaplanz/advise |
| max_upload_size | |
| id | 1215124 |
| size | 33,366 |
This crate offers a streamlined way to keep users informed about your program's progress and potential issues. It provides:
error!, warn!,
info!, debug!, and trace! to categorize your messages.Render trait,
tailoring the specific needs to your application.advise provides a simple API, similar to the log crate,
for printing status messages that should be enough for the majority of
use-cases.
use advise::{info, warn};
fn main() {
warn!("It's dangerous to go alone!");
info!("Take this.");
}
Running the above code will print the following to stderr.
warn: It's dangeous to go alone! info: Take this.
[!IMPORTANT]
GitHub currently does not support coloured text in markdown. You can run this example with
cargo run --example=basicto see the above output rendered in colour.
This project is dual-licensed under both MIT License and Apache License 2.0. You have permission to use this code under the conditions of either license pursuant to the rights granted by the chosen license.