Skip to content

Commit

Permalink
use lazy replace lazy_static
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jan 28, 2022
1 parent ac07909 commit 40e7be9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions example/src/split_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@ fn main(){
Box::new(LogPacker{}),
true,
);
for _ in 0..12{
std::thread::spawn(||{
for _ in 0..2000000 {
log::info!("Commencing yak shaving");
}
});
for _ in 0..20000 {
log::info!("Commencing yak shaving");
}
sleep(Duration::from_secs(3*3600*3600));
sleep(Duration::from_secs(3));
println!("you can see log files in path: {}","target/logs/")
}

0 comments on commit 40e7be9

Please sign in to comment.