use std::env; use tardis::basic::result::TardisResult; use tardis::TardisFuns; use tracing::{error, info}; use crate::app::req::test_req; #[tokio::test(flavor = "multi_thread")] async fn test_basic_logger() -> TardisResult<()> { // env::set_var("RUST_LOG", "OFF"); env::set_var("RUST_LOG", "info"); TardisFuns::init_log(); info!("main info..."); error!("main error"); test_req(); Ok(()) } mod app { pub mod req { use tracing::{error, info}; pub fn test_req() { info!("app::req info"); error!("app::req error"); } } }