Added Logging functions
parent
ea823a2ea2
commit
4b22958a05
|
@ -1 +1,2 @@
|
|||
pub mod config;
|
||||
pub mod logger;
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
fn l1_log(verbosity: u8, message: &str) {
|
||||
if verbosity > 0 {
|
||||
println!("{}", message);
|
||||
}
|
||||
}
|
||||
|
||||
fn l2_log(verbosity: u8, message: &str) {
|
||||
if verbosity > 1 {
|
||||
println!("{}", message);
|
||||
}
|
||||
}
|
||||
|
||||
//TODO unit test, but these are trivial
|
Loading…
Reference in New Issue