swing 0.1.0

Log like it's 1978 with this logging implementation for the log crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use log::LevelFilter;
use swing::{theme::Spectral, ColorFormat, Config, Logger, RecordFormat};
mod util;

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

    util::log_sample_messages(100);
}