use std::sync::Once;
use tracing::Level;
static INIT: Once = Once::new();
pub fn init() {
INIT.call_once(|| {
tracing_subscriber::fmt()
.with_max_level(Level::DEBUG)
.with_test_writer()
.pretty()
.init();
color_eyre::install().unwrap();
});
}
pub type Result = eyre::Result<()>;