3 unstable releases
0.2.0-alpha | Jan 20, 2025 |
---|---|
0.1.1 | Jun 4, 2024 |
0.1.0 | Jun 3, 2024 |
#280 in Debugging
110 downloads per month
110KB
701 lines
glug: a logger with graphical elements.
the sidebar
the sidebar (the meat and potatoes of glug) will show you what types of logs you're getting and how many. Is this useful? Maybe. Is it cool? Maybe.
How to use
This is the repo for a crate on crates.io. Read the documentation or the examples.
lib.rs
:
Logger with graphical elements. For use with log
crate.
The logger writes to stderr with ANSI escape codes to display logs and aggregate data.
Could be useful if a program or library logs en masse.
How to use
The glug
logger uses a dedicated writer thread. Panicking may break.
(yes, this example is everywhere in this doc)
fn main() {
let gref = glug::GLogger::setup();
log::info!("logged a message");
}
Dependencies
~1–1.5MB
~21K SLoC