swing 0.1.0

Log like it's 1978 with this logging implementation for the log crate
Documentation
use log::LevelFilter;
use std::thread;
use swing::{theme::Spectral, ColorFormat, Config, Logger};
mod util;

fn main() {
    // setup logger
    let config = Config {
        level: LevelFilter::Trace,
        color_format: Some(ColorFormat::MultiLineGradient(20)),
        theme: Box::new(Spectral {}),
        ..Default::default()
    };
    Logger::with_config(config).init().unwrap();

    // log sample messages from 10 threads simultaneously
    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();
    }
}