Skip to content

chenfengyanyu/show_rust_cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

show_rust_cli

Command Line Applications in Rust

log 打印 | 文档地址

使用说明

fn user_log() {
    env_logger::init();
    trace!("Progress Bar is start!");
    thread::sleep(Duration::from_secs(1));
    info!("Time is out!");
    thread::sleep(Duration::from_secs(1));
    warn!("oops, nothing implemented!");
}

运行命令,需要带上环境变量,否则无任何输出

# Even setting max level to ‘trace’ or DEBUG_LOG=trace
RUST_LOG=trace cargo run -- main src/main.rs

效果演示 show

About

Command Line Applications in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages