2022-02-25 16:22:29 +01:00
|
|
|
extern crate log;
|
|
|
|
extern crate simplelog;
|
|
|
|
|
2022-02-20 22:08:17 +01:00
|
|
|
mod filter;
|
2022-02-16 18:27:03 +01:00
|
|
|
mod output;
|
2022-02-12 22:32:51 +01:00
|
|
|
mod utils;
|
2022-02-16 18:27:03 +01:00
|
|
|
|
2022-02-25 16:22:29 +01:00
|
|
|
use simplelog::*;
|
|
|
|
|
2022-03-10 19:50:05 +01:00
|
|
|
use crate::output::play;
|
2022-02-25 16:22:29 +01:00
|
|
|
use crate::utils::{get_config, init_logging};
|
2022-02-12 22:32:51 +01:00
|
|
|
|
|
|
|
fn main() {
|
2022-02-16 18:27:03 +01:00
|
|
|
let config = get_config();
|
2022-02-25 16:22:29 +01:00
|
|
|
let logging = init_logging(&config);
|
|
|
|
|
|
|
|
CombinedLogger::init(logging).unwrap();
|
2022-02-23 18:06:40 +01:00
|
|
|
|
2022-03-10 19:50:05 +01:00
|
|
|
play(config);
|
2022-02-12 22:32:51 +01:00
|
|
|
}
|