use log::LevelFilter;
use std::thread;
use swing::{theme::Spectral, ColorFormat, Config, Logger};
mod util;
fn main() {
let config = Config {
level: LevelFilter::Trace,
color_format: Some(ColorFormat::MultiLineGradient(20)),
theme: Box::new(Spectral {}),
..Default::default()
};
Logger::with_config(config).init().unwrap();
let mut handles = vec![];
for _ in 0..10 {
handles.push(thread::spawn(move || {
util::log_sample_messages(1000);
}));
}
for handle in handles {
handle.join().unwrap();
}
}