#logger #log #logging

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

#265 in #logger

Download history 26/week @ 2024-07-20 47/week @ 2024-07-27 33/week @ 2024-08-03 57/week @ 2024-08-10 23/week @ 2024-08-17 19/week @ 2024-08-24 32/week @ 2024-08-31 31/week @ 2024-09-07 41/week @ 2024-09-14 80/week @ 2024-09-21 123/week @ 2024-09-28 29/week @ 2024-10-05 69/week @ 2024-10-12 33/week @ 2024-10-19 30/week @ 2024-10-26 75/week @ 2024-11-02

211 downloads per month
Used in 2 crates

MIT license

5KB
62 lines

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.


lib.rs:

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");
}

Dependencies

~160KB