#logging #logger #log

glug

A logging impementation for log with graphics in the terminal

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

Download history 24/week @ 2024-12-08 1/week @ 2024-12-15 100/week @ 2025-01-19 2/week @ 2025-01-26 8/week @ 2025-02-02

110 downloads per month

MIT license

110KB
701 lines

glug: a logger with graphical elements.

logger_in_use

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