6 releases

0.1.6 Sep 15, 2024
0.1.5 Sep 8, 2024
0.1.1 Apr 23, 2024

#2 in #var

34 downloads per month

MIT license

12KB
269 lines

vit_logger

Easy to use logger for your rust projects.

Installation

cargo add vit_logger

Usage

fn main() {
    std::env::set_var("RUST_LOG", "trace");
    VitLogger::new().init(Config::builder());
    log::info!("Hello, world!");
}

License

MIT © malezjaa


lib.rs:

vit_logger

Easy to use logger for your rust projects.

Installation

cargo add vit-logger

Usage

use vit_logger::{Config, VitLogger};

fn main() {
    std::env::set_var("RUST_LOG", "trace");
    VitLogger::new().init(Config::builder().finish()?);
    log::info!("Hello, world!");
}

Dependencies

~2–11MB
~74K SLoC