#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

#283 in #logger

Download history 19/week @ 2024-03-13 27/week @ 2024-03-20 40/week @ 2024-03-27 42/week @ 2024-04-03 77/week @ 2024-04-10 21/week @ 2024-04-17 27/week @ 2024-04-24 23/week @ 2024-05-01 44/week @ 2024-05-08 42/week @ 2024-05-15 29/week @ 2024-05-22 36/week @ 2024-05-29 28/week @ 2024-06-05 25/week @ 2024-06-12 26/week @ 2024-06-19 29/week @ 2024-06-26

118 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