#logging #macro-use #clogger

clogger

Simple console logger that is configurable at runtime for command line apps

1 unstable release

Uses old Rust 2015

0.1.0 Jul 9, 2018

#141 in #logger

Download history 1/week @ 2025-01-01 21/week @ 2025-01-08 75/week @ 2025-01-15 14/week @ 2025-01-22 33/week @ 2025-01-29 71/week @ 2025-02-05 72/week @ 2025-02-12 51/week @ 2025-02-19 57/week @ 2025-02-26 49/week @ 2025-03-05 47/week @ 2025-03-12 20/week @ 2025-03-19 37/week @ 2025-03-26 3/week @ 2025-04-02 22/week @ 2025-04-09

88 downloads per month
Used in 2 crates

MIT license

5KB
62 lines

Simple console logger that is configurable at runtime for command line apps.

Example

extern crate clogger;
#[macro_use]
extern crate log;

fn main() {
    clogger::init();

    debug!("this is a debug message and will be hidden");
    error!("this is printed by default");

    clogger::set_verbosity(2);

    debug!("verbosity increased, this will now be displayed");
}

clogger

Build Status Crates.io Documentation License

Simple console logger that is configurable at runtime for command line apps.

Documentation

License

This library is licensed under the MIT license. See the LICENSE file for details.

Dependencies

~165KB