pub fn configure_logging() { // Configure tracing to show events, and to show info-level spans. let default_verbosity = tracing_subscriber::filter::LevelFilter::DEBUG; let env_filter = tracing_subscriber::EnvFilter::builder() .with_default_directive(default_verbosity.into()) .from_env_lossy(); tracing_subscriber::fmt() .with_env_filter(env_filter) .with_timer(tracing_subscriber::fmt::time::Uptime::default()) .with_span_events( tracing_subscriber::fmt::format::FmtSpan::CLOSE | tracing_subscriber::fmt::format::FmtSpan::NEW, ) .with_target(false) .init(); }