mtlog-progress 0.2.2

A progress bar implementation working gracefully with mtlog's logger.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use mtlog::logger_config;
use mtlog_progress::ProgressIteratorExt;
use std::{thread, time::Duration};

fn main() {
    let _guard = logger_config().init_global();
    (0..50).progress("Progress").for_each(|i| {
        thread::sleep(Duration::from_millis(20));
        if i == 25 {
            log::info!("Halfway through the range!");
        }
    });
}