Skip to content

Commit

Permalink
edit doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jul 27, 2024
1 parent 3b85eed commit 3156571
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions example/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
use fast_log::config::Config;
use fast_log::print;

fn main() {
fast_log::init(Config::new().console().chan_len(Some(100000))).unwrap();
for _ in 0..100 {
log::info!("Commencing yak shaving{}", 0);
}
print("Commencing print\n".into()).expect("fast log not init");
log::info!("Commencing yak shaving{}", 0);
log::error!("Commencing yak shaving{}", 0);
log::logger().flush();
}

0 comments on commit 3156571

Please sign in to comment.