Added Logging functions
ci/woodpecker/push/workflow Pipeline was successful Details
ci/woodpecker/pr/workflow Pipeline was successful Details

pull/5/head
Ayrton Chilibeck 2024-01-15 00:50:11 -07:00
parent ea823a2ea2
commit 4b22958a05
Signed by: ayrton
GPG Key ID: BAE24A03DCBF160D
2 changed files with 14 additions and 0 deletions

View File

@ -1 +1,2 @@
pub mod config;
pub mod logger;

13
src/util/logger.rs Normal file
View File

@ -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