yall 0.6.1

A simple lightweight backend for the log crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2020 Allen Wild
// SPDX-License-Identifier: MIT OR Apache-2.0

use yall::log_macros::*;
use yall::Logger;

fn main() {
    let count: usize = match std::env::args().nth(1) {
        Some(c) => c.parse().unwrap(),
        None => 100,
    };

    Logger::new().init();

    for i in 1..=count {
        info!("info log {}", i);
    }
}