1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use log::{info, LevelFilter}; use loggest::init; use std::thread; fn main() { let _flush = init(LevelFilter::Info, "example").unwrap(); info!("Main thread"); thread::spawn(move || { info!("A thread"); }) .join() .unwrap(); }