1 2 3 4 5 6 7 8 9 10 11 12 13 14
pub mod setup { pub mod log { use std::sync::Once; static SETUP: Once = Once::new(); pub fn configure() { SETUP.call_once(|| { let _ = env_logger::builder() // .is_test(true) // disables color in the terminal .filter_level(log::LevelFilter::Trace) .try_init(); }); } } }