I am a novice in rust. I try to use axum and the tracing framework to make a web program. When I use tracing and send requests, there will be hyper log output. How do I filter out these logs and keep the logs of my application itself?
mycode:
let filter: EnvFilter = "hyper=debug".parse().expect("filter should parse");
let logger = Registry::default()
.with(EnvFilter::from_default_env().add_directive(log_env.into()).with_filter(filter))
.with(fmt::Layer::default().event_format(format))
;
tracing::subscriber::set_global_default(logger).unwrap();
but not work for me