#log #logger

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

#78 in #logger

Download history 9/week @ 2021-09-28 15/week @ 2021-10-05 11/week @ 2021-10-12 11/week @ 2021-10-19 9/week @ 2021-10-26 11/week @ 2021-11-02 11/week @ 2021-11-09 19/week @ 2021-11-16 21/week @ 2021-11-23 20/week @ 2021-11-30 18/week @ 2021-12-07 20/week @ 2021-12-14 23/week @ 2021-12-21 18/week @ 2021-12-28 27/week @ 2022-01-04 25/week @ 2022-01-11

99 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

~155KB

B[