rilis 0.1.2

Local deployment tools built with Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::env;

use env_logger::{Builder, Env};

pub fn setup_logger() {
    if env::var("RUST_LOG").is_err() {
        env::set_var("RUST_LOG", "info")
    }

    Builder::from_env(Env::default().filter_or("RUST_LOG", "info"))
        .format_timestamp(None)
        .format_indent(None)
        .format_target(false)
        .init()
}