#logger #run-time #console #line #command #apps #configurable

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

#54 in #configurable

Download history 19/week @ 2023-11-20 6/week @ 2023-11-27 6/week @ 2023-12-04 11/week @ 2023-12-11 11/week @ 2023-12-18 26/week @ 2024-01-08 13/week @ 2024-01-15 4/week @ 2024-01-22 16/week @ 2024-01-29 6/week @ 2024-02-05 16/week @ 2024-02-12 38/week @ 2024-02-19 37/week @ 2024-02-26 29/week @ 2024-03-04

121 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