1 unstable release
Uses old Rust 2015
0.1.0 | Jul 9, 2018 |
---|
#283 in #logger
118 downloads per month
Used in 2 crates
5KB
62 lines
clogger
Simple console logger that is configurable at runtime for command line apps.
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