Skip to content

Commit

Permalink
add impl PackType
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jul 29, 2024
1 parent ae57437 commit e76750b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
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);
}
fast_log::print("Commencing print\n".into()).expect("fast log not init");
print("Commencing print\n".into()).expect("fast log not init");
log::error!("Commencing yak shaving{}", 0);
log::logger().flush();
}

0 comments on commit e76750b

Please sign in to comment.